Browse Source

prevent assertion without point_sprite extension

David Rose 19 years ago
parent
commit
9b202f59d7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -6208,9 +6208,10 @@ do_issue_tex_gen() {
       break;
 
     case TexGenAttrib::M_point_sprite:
-      nassertv(_supports_point_sprite);
-      GLP(TexEnvi)(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
-      got_point_sprites = true;
+      if (_supports_point_sprite) {
+        GLP(TexEnvi)(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
+        got_point_sprites = true;
+      }
       break;
 
     case TexGenAttrib::M_unused: