From 90c13cbd4e142ae0570a332431f3a5fea026518f Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 17 Oct 2018 17:32:19 +0200 Subject: [PATCH] glgsg: fix error downloading texture with WM_repeat --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 616784e0cc..19594750c8 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/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: