You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Enable seamless cubemap only if extension is present.
This commit is contained in:
@@ -5469,7 +5469,9 @@ void RasterizerStorageGLES2::initialize() {
|
|||||||
#ifdef GLES_OVER_GL
|
#ifdef GLES_OVER_GL
|
||||||
//this needs to be enabled manually in OpenGL 2.1
|
//this needs to be enabled manually in OpenGL 2.1
|
||||||
|
|
||||||
|
if (config.extensions.has("GL_ARB_seamless_cube_map")) {
|
||||||
glEnable(_EXT_TEXTURE_CUBE_MAP_SEAMLESS);
|
glEnable(_EXT_TEXTURE_CUBE_MAP_SEAMLESS);
|
||||||
|
}
|
||||||
glEnable(GL_POINT_SPRITE);
|
glEnable(GL_POINT_SPRITE);
|
||||||
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
|
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user