diff --git a/win32/CCGShader.cpp b/win32/CCGShader.cpp index 91bd530b..8c589039 100644 --- a/win32/CCGShader.cpp +++ b/win32/CCGShader.cpp @@ -115,5 +115,7 @@ bool CCGShader::LoadShader(const char *path) id = strtok(NULL,";"); } + free(shaderIds); + return true; } diff --git a/win32/CGLCG.cpp b/win32/CGLCG.cpp index 4aedf338..550e7623 100644 --- a/win32/CGLCG.cpp +++ b/win32/CGLCG.cpp @@ -266,7 +266,7 @@ void CGLCG::Render(GLuint origTex, xySize textureSize, xySize inputSize, xySize shaderPasses[0].tex = origTex; shaderPasses[0].outputSize = inputSize; - shaderPasses[0].textureSize = textureSize; + shaderPasses[0].textureSize = textureSize; for(int i=1;i