on second thought, checking for function pointers is more optimal

This commit is contained in:
milek7
2021-01-22 22:27:15 +01:00
parent 9e7c528114
commit 63edbe91c2
3 changed files with 4 additions and 4 deletions

View File

@@ -1123,7 +1123,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 && !GLAD_GL_ES_VERSION_3_1 ) {
if( Global.gfx_usegles && !glTexStorage2DMultisample ) {
samples = 1;
}
layers = l;