Просмотр исходного кода

LibGL: Set sampler config to dirty if modifying tex env

Jelle Raaijmakers 3 лет назад
Родитель
Сommit
4450aef175
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Userland/Libraries/LibGL/SoftwareGLContext.cpp

+ 1 - 0
Userland/Libraries/LibGL/SoftwareGLContext.cpp

@@ -2128,6 +2128,7 @@ void SoftwareGLContext::gl_tex_env(GLenum target, GLenum pname, GLfloat param)
     case GL_REPLACE:
     case GL_DECAL:
         m_active_texture_unit->set_env_mode(param_enum);
+        m_sampler_config_is_dirty = true;
         break;
     default:
         // FIXME: We currently only support a subset of possible param values. Implement the rest!