16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00

properly check for gles multisampling

This commit is contained in:
milek7
2021-01-20 19:49:36 +01:00
parent 5aa8dfe1a1
commit d5fadaf98c

View File

@@ -1059,7 +1059,7 @@ opengl_texture::alloc_rendertarget( GLint format, GLint components, int width, i
wrap_mode_s = wrap;
wrap_mode_t = wrap;
samples = s;
if( Global.gfx_usegles && !glTexStorage2DMultisample ) {
if( Global.gfx_usegles && !GLAD_GL_ES_VERSION_3_1 ) {
samples = 1;
}
layers = l;