summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-03-11 16:48:26 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-03-11 16:49:04 -0300
commitd9235be54b6965e9700b6be2ca201d347d1c6d93 (patch)
treec305b1f4109c252f0bbb1dd4a82670c4705f9497
parent292c037f9b1577f0d195824be149d8cea7d0d2fc (diff)
Enable seamless cubemap only if extension is present.
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index ede4a3e23d..afdb45d28e 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -5469,7 +5469,9 @@ void RasterizerStorageGLES2::initialize() {
#ifdef GLES_OVER_GL
//this needs to be enabled manually in OpenGL 2.1
- glEnable(_EXT_TEXTURE_CUBE_MAP_SEAMLESS);
+ if (config.extensions.has("GL_ARB_seamless_cube_map")) {
+ glEnable(_EXT_TEXTURE_CUBE_MAP_SEAMLESS);
+ }
glEnable(GL_POINT_SPRITE);
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
#endif