Sergey Lipskiy
5b3b2920bc
Do not set sampler states for multisampled textures:
...
"GL_INVALID_ENUM is generated if the effective target is either GL_TEXTURE_2D_MULTISAMPLE or GL_TEXTURE_2D_MULTISAMPLE_ARRAY, and pname is any of the sampler states."
Fixed HWFBE when MSAA enabled.
Correct code formatting.
2017-02-18 21:40:41 +07:00
Sergey Lipskiy
c33d8555b2
Make N64DepthCompare setting independent off enableFragmentDepthWrite one.
2017-02-17 17:14:45 +07:00
Sergey Lipskiy
151fdf5ecc
Remove code to clear depth image textures.
...
Depth image textures cleared by GraphicsDrawer::drawRect, as on N64.
2017-02-17 15:54:16 +07:00
Francisco Zurita
8b08bddb91
Common implementation of N64 depth compare for Full GL and GLES
...
Also, fix small typo.
2017-02-17 15:54:13 +07:00
Sergey Lipskiy
b6067bb90d
Call glMemoryBarrier before polygon draw when N64DepthCompare enabled.
2017-02-17 15:53:46 +07:00
Sergey Lipskiy
2a6d1f1f1b
Reset framebuffer after init in TexrectDrawer::init().
...
Fixed rendering with frame buffer emmulation disabled.
2017-02-16 12:22:24 +07:00
Francisco Zurita
6bae6b71df
Remove GLES3 define from android build
2017-02-15 12:56:25 +07:00
Francisco Zurita
9d6e85a022
Cleanup Android makefile
2017-02-15 12:56:21 +07:00
Sergey Lipskiy
47cd2e8db6
Fix power of two AA setting in GUI.
2017-02-14 23:58:55 +07:00
Sergey Lipskiy
85239acc36
Fix GraphicsDrawer::drawLine
2017-02-14 15:01:26 +07:00
Aquatakat
02b10ac946
UI supports AA in powers of 2; fixed spaces to tabs
2017-02-14 13:06:04 +07:00
Francisco Zurita
fae25a494a
Implemented Async buffer copies for GLES2 using EGLImage
...
Run time loading of the library used this implementation:
e5f5d8fa1c/imagine/src/base/android/privateApi
2017-02-14 00:10:49 -05:00
Francisco Zurita
5fd16a73b7
Fix GLES 2.0 texture initialization errors
2017-02-14 00:00:08 -05:00
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