Browse Source

glgsg: fix error downloading texture with WM_repeat

rdb 7 years ago
parent
commit
90c13cbd4e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -8925,6 +8925,9 @@ get_panda_wrap_mode(GLenum wm) {
   case GL_REPEAT:
     return SamplerState::WM_repeat;
 
+  case GL_MIRRORED_REPEAT:
+    return SamplerState::WM_mirror;
+
 #ifndef OPENGLES
   case GL_MIRROR_CLAMP_EXT:
   case GL_MIRROR_CLAMP_TO_EDGE_EXT: