1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
Commit Graph

2244 Commits

Author SHA1 Message Date
Francisco Zurita
ab0e472014 Add compiler macro to produce backtrace on GL Error for all GL functions
This will also log the function name and the error number when the GL
error happens.
2017-02-14 09:57:08 +07:00
Sergey Lipskiy
6be8376db3 Remove opengl_ColorBufferReaderWithEGLImage.cpp from cmake project,
add opengl_ColorBufferReaderWithReadPixels.cpp.
2017-02-14 09:35:50 +07:00
Sergey Lipskiy
2d4b018fb4 Fix TexrectDrawer compilation on Fedora/Arch. 2017-02-14 09:34:59 +07:00
Francisco Zurita
ac815ee595 Fix multisampling in Adreno devices
In GLES blits between multisampled and not multisampled framebuffers must
have the same source and destination coords.
2017-02-13 16:41:27 +07:00
Sergey Lipskiy
7775081661 Fix read of config.video.multisampling. 2017-02-13 16:30:32 +07:00
Sergey Lipskiy
42bad7958a Set texture size for TexrectDrawer shader. It is necessary for GLES2. 2017-02-13 16:24:28 +07:00
Sergey Lipskiy
276018a2fc Refactor TexrectDrawer. 2017-02-12 22:21:20 +07:00
Sergey Lipskiy
e5c4b156f1 Use only power of two values for multisampling. 2017-02-12 16:28:44 +07:00
Sergey Lipskiy
d7407d58f9 Minor code cleanup. 2017-02-12 16:10:58 +07:00
Sergey Lipskiy
b9453474b6 Fix initialization of multisample textures. 2017-02-12 16:05:02 +07:00
Sergey Lipskiy
97acd7d071 TextDrawer must be inited before TextureFilterHandler. 2017-02-12 15:06:31 +07:00
Francisco Zurita
86d33b24c0 Allow multisampling
It's currently broken though
2017-02-12 14:40:12 +07:00
Francisco Zurita
0e8e71639b Implement generic copy color to RDRAM for GLES2 devices
Async copy is not supported for GLES2 devices unless using EGL Image
extension which has platform independent implementations
2017-02-12 14:40:01 +07:00
Sergey Lipskiy
2483903b74 Refactor TextDrawer: remove direct use of OpenGL
Remove DummyTextDrawer.
2017-02-12 14:27:26 +07:00
Sergey Lipskiy
e011ee56b5 Fix internal texture formats for GLES 2.0 2017-02-10 16:58:17 +07:00
Sergey Lipskiy
66fed934c5 Fix typo in UTextureSize uniform.
Fixed work of 3 point filtering with GLES 2.0
2017-02-10 14:42:05 +07:00
Logan McNaughton
1f74b9c821 Disable N64 Depth Compare if Image Textures are unsupported
Also disable fragment depth writing in GLES2
2017-02-09 21:54:44 +07:00
Logan McNaughton
cebd2e92b7 Make cmake work with mingw 2017-02-09 20:49:41 +07:00
Francisco Zurita
1319687f86 Replace ANDROID macro definition with OS_ANDROID 2017-02-09 20:38:27 +07:00
Francisco Zurita
c53dc0a6c0 Remove macros checking for GL version and use runtime checks instead. 2017-02-09 20:38:26 +07:00
Logan McNaughton
9c16d1e75c Make compatible with apitrace in Debug mode 2017-02-08 12:33:38 +07:00
Logan McNaughton
acff19e66c Force disable fragment depth writing in GLES2 2017-02-08 12:33:31 +07:00
Logan McNaughton
a7ecc8534b Fix function loading on Raspberry Pi 2017-02-07 08:24:48 -07:00
Sergey Lipskiy
8004dc200d Fix errors caused by commit ca7da5418e : Disable RectBuffer optimization for bufferStorage. 2017-02-07 16:58:50 +07:00
Sergey Lipskiy
5093d6153f Add missing wglext.h 2017-02-07 16:07:12 +07:00
Sergey Lipskiy
683e22c3b3 Correct shaders generation when hw light is enabled. 2017-02-07 11:50:00 +07:00
Sergey Lipskiy
6c9211a38f Simplify passing numlights vertex attribute in UnbufferedDrawer. 2017-02-07 11:12:04 +07:00
Sergey Lipskiy
0732b207a6 Code cleanup: remove commented code in BufferedDrawer 2017-02-07 10:55:35 +07:00
Sergey Lipskiy
ca7da5418e Disable RectBuffer optimization for bufferStorage.
Remove some code duplication.
2017-02-07 10:33:12 +07:00
Sergey Lipskiy
7e360c613d Correct buffer target in BufferedDrawer::_updateBuffer 2017-02-07 10:09:35 +07:00
Sergey Lipskiy
3f855ffb63 Replace internal color format parameters on formats supported by GLES2. 2017-02-07 09:49:09 +07:00
Francisco Zurita
0c6564f3c1 Improve check for "ShaderProgramBinary" 2017-02-07 09:43:37 +07:00
Logan McNaughton
5d51242252 A few GL fixes 2017-02-06 11:29:23 +07:00
Francisco Zurita
62f1903a15 Add Android GLES 2 build 2017-02-05 20:26:53 +07:00
Sergey Lipskiy
403c60cfea Convert texture format returned by GLideNHQ for GLES2. 2017-02-05 20:26:40 +07:00
Francisco Zurita
bca968fdd3 Fix noise texture in GLES 2.0 2017-02-05 20:07:46 +07:00
Francisco Zurita
341f9848bb Fix monochrome shaders for GLES2 2017-02-05 20:07:17 +07:00
Sergey Lipskiy
15f90a0699 Use GL_RGBA instead of GL_RGBA8 for GLES2. 2017-02-05 20:07:15 +07:00
Sergey Lipskiy
e232ae9e09 Rename InternalColorFormatParam RGBA to InternalColorFormatParam RGBA8. 2017-02-05 20:07:13 +07:00
Francisco Zurita
874b410ee1 Don't use macro to determine if GL_NUM_EXTENSIONS exists 2017-02-05 20:07:02 +07:00
Francisco Zurita
3d95dbdb03 Fix shader compilation error in GLES 2 2017-02-05 19:29:24 +07:00
Francisco Zurita
0898d8d0c4 Check for pixel read buffer implementation before trying to make one 2017-02-05 19:29:01 +07:00
Francisco Zurita
4a330b98a8 Fix linker error when compiling GLES 2 2017-02-05 19:17:11 +07:00
Sergey Lipskiy
c1bba2afe6 Request core GL profile. 2017-02-05 18:41:49 +07:00
Sergey Lipskiy
a625225323 VBO implementation.
Thanks to Logan McNaughton for help.
2017-02-05 18:41:06 +07:00
Logan McNaughton
dddb3ae1f7 Fix error PBO code 2017-02-04 21:24:03 -07:00
Logan McNaughton
d5052c0c70 Improve PBO writer performance 2017-02-05 10:19:01 +07:00
Sergey Lipskiy
7fe2b40cad Remove rudiments of old code for RPI. 2017-02-04 22:51:54 +07:00
Sergey Lipskiy
f832894965 Change format for zLUT and palette image textures.
It is now the same as for GLES 3.
2017-02-04 22:44:41 +07:00
Sergey Lipskiy
dc35b3a0fe ZlutTexture and PaletteTexture do nothing if image textures not supported. 2017-02-04 22:44:31 +07:00