Browse Source

simple error prevented driver-generate-mipmaps from working

David Rose 14 years ago
parent
commit
d7ee644809
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 2 - 2
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -746,8 +746,8 @@ reset() {
   _supports_multisample =
   _supports_multisample =
     has_extension("GL_ARB_multisample") || is_at_least_gl_version(1, 3);
     has_extension("GL_ARB_multisample") || is_at_least_gl_version(1, 3);
 
 
-#ifndef OPENGLES_2
-  _supports_generate_mipmap = false;
+#ifdef OPENGLES_2
+  _supports_generate_mipmap = true;
 #else
 #else
   _supports_generate_mipmap =
   _supports_generate_mipmap =
     has_extension("GL_SGIS_generate_mipmap") || is_at_least_gl_version(1, 4) || is_at_least_gles_version(1, 1);
     has_extension("GL_SGIS_generate_mipmap") || is_at_least_gl_version(1, 4) || is_at_least_gles_version(1, 1);