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; }