From 7cbffc7c14e0a3e7b68891bde39263db5e8905a8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 Jul 2014 10:35:02 +0200 Subject: [PATCH] - test code removal. --- src/gl/shaders/gl_shader.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/gl/shaders/gl_shader.cpp b/src/gl/shaders/gl_shader.cpp index 013e56709..a15d5a106 100644 --- a/src/gl/shaders/gl_shader.cpp +++ b/src/gl/shaders/gl_shader.cpp @@ -212,27 +212,6 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char * int texture_index = glGetUniformLocation(hShader, "texture2"); if (texture_index > 0) glUniform1i(texture_index, 1); - - GLint binaryLength; - void* binary; - FILE* outfile; - GLenum binaryFormat; - // - // Retrieve the binary from the program object - // - glGetProgramiv(hShader, GL_PROGRAM_BINARY_LENGTH, &binaryLength); - binary = (void*)malloc(binaryLength); - glGetProgramBinary(hShader, binaryLength, NULL, &binaryFormat, binary); - - // - // Cache the program binary for future runs - // - outfile = fopen(name, "wb"); - fwrite(binary, binaryLength, 1, outfile); - fclose(outfile); - free(binary); - - glUseProgram(0); return !!linked; }