DXGL r128 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r127‎ | r128 | r129 >
Date:01:37, 15 March 2012
Author:admin
Status:new
Tags:
Comment:
Fix infinitely regenerating shaders
Modified paths:
  • /ddraw/shadergen.cpp (modified) (history)

Diff [purge]

Index: ddraw/shadergen.cpp
@@ -170,6 +170,7 @@
171171 if(genindex >= 256) genindex = 0;
172172 }
173173 genshaders[shaderindex].id = id;
 174+ memcpy(genshaders[shaderindex].texids,texstate,8*sizeof(__int64));
174175 glUseProgram(genshaders[shaderindex].shader.prog);
175176 current_prog = genshaders[shaderindex].shader.prog;
176177 }