S2S
a42e34f1b8
Write macros for reading a vector or matrix without hurting performance. Cleanup blender code.
2019-11-14 11:46:32 +07:00
Sergey Lipskiy
9dff907f15
Do not shift texture coordinates for frame buffer textures.
...
Fixed #2112 Conker black line following your shadow
2019-11-12 10:54:56 +07:00
Sergey Lipskiy
ad85856ee7
Replace printf by LOG.
...
Fixed #2123
2019-11-04 18:27:01 +07:00
fzurita
17b8e34799
Add logging of OpenGL profiling data
2019-11-04 15:03:36 +07:00
fzurita
d7996329c1
Added more GL functions to threaded GL implementation
2019-11-04 14:54:05 +07:00
fzurita
e333dea890
Fix GL errors when using EGL image to read pixel from texture
2019-11-04 14:30:37 +07:00
fzurita
9059bb38d3
Add GL function glDebugMessageCallback and glDebugMessageControl
2019-11-03 23:07:05 +07:00
Sergey Lipskiy
a87f7c4022
Log CoreVideo functions error code.
2019-11-03 23:00:54 +07:00
fzurita
ffaaf1f664
Fix incorrect OpenGL function init in iOS
2019-10-25 11:17:14 +07:00
fzurita
3c875ef3a6
Fix incorrect OpenGL function init in MacOS
2019-10-25 11:17:14 +07:00
Sergey Lipskiy
0338f27225
Do not shift texture coordinates by 0.5 for point-sampled textures.
...
Attempt to fix texture mapping issue from #2097 .
2019-10-14 14:11:24 +07:00
fzurita
1384584af6
Fix threaded OpenGL lockup when trying to remove invalid buffer
2019-10-14 14:10:08 +07:00
fzurita
462dd2a9bc
FIx EGL image compatibility with mali devices
2019-10-05 22:41:33 +07:00
fzurita
4c87af5975
Don't initialize EGL, this is causing issues
2019-10-05 22:41:33 +07:00
fzurita
8cdf5a41d8
Don't crash on failed initialization
2019-10-05 22:41:33 +07:00
fzurita
4a10c0a7fa
Fix incorrect OpenGL function init in Linux
2019-09-30 21:48:36 -04:00
fzurita
d6ad676436
Fix EGL initialization in applications that don't implment VidExt
2019-09-30 21:48:36 -04:00
fzurita
7861d14060
Fix issue with lack of highp floating numbers in GLSL for GLES 2.0.
2019-09-30 21:48:26 -04:00
fzurita
8817e2c549
Fix logging error
2019-09-29 09:25:04 -04:00
fzurita
415e63d6d1
Fix shader compilation error in GLES 2.0
2019-09-29 16:08:44 +07:00
Sergey Lipskiy
86a227308e
Implement copy depth to main depth buffer. It is necessary for correct work of some Reshade shaders.
2019-09-27 19:33:18 +07:00
Sergey Lipskiy
34c6cae364
Fix compile errors in opengl_ColorBufferReaderWithEGLImage.cpp
...
Fixed #2083
2019-09-05 18:53:38 +07:00
Sergey Lipskiy
10ec517fe9
Code refactor in GLInfo::init()
2019-08-31 11:05:44 +07:00
Sergey Lipskiy
c28ea61b8f
Fix for texture issues in Stunt Racer, reported by DonelBueno in #1885
...
Stunt Racer uses combiner with two textures for track polygons, but actually loads only T0.
T1 replaced by T0 because of LOD flags in othermode.
This situation was not checked in the main code and ClampWrapMirror shader got wrong parameters,
which lead to the glitches.
2019-08-16 19:10:09 +07:00
Sergey Lipskiy
2d712f2ae0
Rewrite textures loading and mapping:
...
- use RiceVideo method for texture size calculation.
RiceVideo uses the same method for texture dumping.
- rewrite texture mapping.
Texture Clamp-Wrap-Mirror implemented in shaders.
Problem explanation:
https://github.com/gonetz/GLideN64/issues/1885#issuecomment-485136358
Fixed various glitches with HD textures, #1885
2019-06-19 19:02:52 +07:00
Francisco Zurita
c06c593eba
Improve logging information
2019-04-23 11:15:41 +07:00
Sergey Lipskiy
8debfdb81c
Correct GLES2 version of mip-map shader.
2019-04-22 21:45:11 +07:00
Francisco Zurita
8f26645407
Fix crash with GL_DEBUG enabled with mupen64plus API
...
Also, fix compiler warning
2019-04-15 09:09:39 +07:00
Francisco Zurita
92bcbe5981
Fix issues with threaded OpenGL when debug is enabled
2019-04-10 12:55:09 +07:00
fzurita
5df3f9dbac
Threaded GLideN64 calls
2019-04-08 10:51:18 +07:00
Sergey Lipskiy
7f5f6256f3
Apply gamma correction to text drawer textures.
...
Fixed #2030 : Font rasteriser doesn't perform gamma correction
Thanks Clownacy for the idea.
2019-04-01 16:30:36 +07:00
Sergey Lipskiy
96ccfc63af
Correct mip-map shader: lod could be larger than actual number of levels in mip-map texture.
...
Fixed mip-mapped textures in Automobili Lamborghini with 3point filtering enabled.
2019-03-03 15:17:52 +07:00
Sergey Lipskiy
3704b37c3e
Fix some of PVS-Studio warnings.
2019-03-03 11:47:10 +07:00
Sergey Lipskiy
6022f510f5
Correct getStorageFileName: set user-preferred locale before using string conversion functions.
2019-02-24 12:07:13 +07:00
fzurita
b40e6f44c1
Fix shader storage with Android 4.4
2019-02-24 11:49:15 +07:00
fzurita
164b44e8e5
Fix shader compilation in GLSL
2019-02-23 15:05:06 +07:00
fzurita
9033a4d536
Fix build errors when using CMake with RPi
2019-02-19 15:18:39 +07:00
Sergey Lipskiy
9bf36d390a
Implement 3-point texture filtering for mipmapped textures.
...
Fixed #1558 3-point texture filtering doesn't work with mipmapped textures.
2019-02-16 20:45:51 +07:00
Sergey Lipskiy
32901bf5dd
Add option enableHalosRemoval for bilinear filtering.
2019-02-07 17:23:20 +07:00
fzurita
2712e8f509
Cleanup EGL image code
2019-02-05 21:48:26 +07:00
gizmo98
164b1056b3
Add bilinear filtering modes which remove halos around transparent textures
...
This workaround is not implemented for gles2 devices.
2019-02-05 21:09:36 +07:00
fzurita
f209304d0b
Add support for Android EGL Image Public API
2019-02-05 17:30:58 +07:00
Sergey Lipskiy
2b7f78c9f8
Fix depth buffer clear when otherMode.depthCompare enabled.
...
Fixed 1080 Snowboarding (JU) FB off breaks games ( regression) #1976
2019-02-03 18:01:01 +07:00
Sergey Lipskiy
f787483dbb
Correct condition for uEnableDepth uniform.
...
Fixed depth compare for particles in Indiana Jones when N64 depth compare enabled, #1977
2019-01-12 14:34:00 +07:00
Sergey Lipskiy
cb0cf5bed9
Fix depth_compare shader:
...
always write depth to buffer when otherMode.depthCompare flag is off.
Up shader storage version.
Fixed 2 players mode in Extreme-G XG2 (U) with N64 depth compare enabled, #1963
2018-12-18 16:04:37 +07:00
orbea
a5fc0689ac
Fix performance with radeonsi.
...
This takes Donkey Kong 64 from 12 fps to full speed with framebuffer
emulation enabled.
2018-12-11 11:35:56 +07:00
zilmar
459fb32106
Revert OS_WINDOWS changes
2018-11-25 18:34:16 +07:00
zilmar
d50aabaa10
Stop using OS_WINDOWS
2018-11-25 18:34:16 +07:00
Sergey Lipskiy
f72553a524
Fix depth compare for texrects rendered with TexrectDrawer.
...
Fixed Duke Nukem 64: 2D Render Issue #1915
2018-10-21 20:19:41 +07:00
Sergey Lipskiy
217ef2557d
Add ability to save content of frame buffer to file for debug purposes.
2018-10-17 15:52:52 +07:00