Browse Source

glgsg: Fix missing GR_adjacency geom rendering flag

I don't think this flag being missing currently affects any functionality, but it is meant to be set when geometry shaders (with adjacency) are supported.
rdb 3 years ago
parent
commit
be2f6a7c61
1 changed files with 4 additions and 6 deletions
  1. 4 6
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 4 - 6
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -827,12 +827,6 @@ reset() {
     Geom::GR_line_strip |
     Geom::GR_line_strip |
     Geom::GR_flat_last_vertex;
     Geom::GR_flat_last_vertex;
 
 
-#ifndef OPENGLES
-  if (_supports_geometry_shaders) {
-    _supported_geom_rendering |= Geom::GR_adjacency;
-  }
-#endif
-
   _supports_point_parameters = false;
   _supports_point_parameters = false;
 
 
 #ifdef OPENGLES_1
 #ifdef OPENGLES_1
@@ -1769,6 +1763,10 @@ reset() {
     _supports_geometry_shaders = false;
     _supports_geometry_shaders = false;
     _glFramebufferTexture = nullptr;
     _glFramebufferTexture = nullptr;
   }
   }
+
+  if (_supports_geometry_shaders) {
+    _supported_geom_rendering |= Geom::GR_adjacency;
+  }
 #endif
 #endif
   _shader_caps._supports_glsl = _supports_glsl;
   _shader_caps._supports_glsl = _supports_glsl;