diff options
author | Stanislav Vorobiov <s.vorobiov@samsung.com> | 2014-03-20 11:07:09 +0400 |
---|---|---|
committer | Stanislav Vorobiov <s.vorobiov@samsung.com> | 2014-03-21 09:49:01 +0400 |
commit | 57c951f4e2e0f4fe47015183e135afd6def137ae (patch) | |
tree | 30e491c5ce4a84fada66b6cdf5521f976e88aa7f /GLES_common/yagl_gles_texture.h | |
parent | fdcfad9ed2784c3aaf3a2f420a64828ad1fd51c3 (diff) | |
download | emulator-yagl-57c951f4e2e0f4fe47015183e135afd6def137ae.tar.gz emulator-yagl-57c951f4e2e0f4fe47015183e135afd6def137ae.tar.bz2 emulator-yagl-57c951f4e2e0f4fe47015183e135afd6def137ae.zip |
YaGL: Fix sized GL_DEPTH_COMPONENT textures
Sized GL_DEPTH_COMPONENT textures are treated as luminance
textures in desktop OpenGL, but according to OpenGL ES 3.0
they should be red, thus, we need to swizzle them.
Also, when texture data is respecified we should unswizzle
the texture when needed
Change-Id: Ia1d5d3de860c04848a09bf84ac4a98f94466ea97
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
Diffstat (limited to 'GLES_common/yagl_gles_texture.h')
-rw-r--r-- | GLES_common/yagl_gles_texture.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/GLES_common/yagl_gles_texture.h b/GLES_common/yagl_gles_texture.h index 6d1597b..f158851 100644 --- a/GLES_common/yagl_gles_texture.h +++ b/GLES_common/yagl_gles_texture.h @@ -19,6 +19,7 @@ struct yagl_gles_texture GLenum internalformat; int is_float; + int is_swizzled; GLboolean immutable; |