summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2011-12-25 12:21:31 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2011-12-25 12:21:31 -0600
commitb607695103ce9d2b40e3e60980b88fb388f5d121 (patch)
treeb647940a8bd70a4b5a5a4d8d975061893e33756b /Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
parent8349cc2551ca89006120cdf4c5fd296edee25445 (diff)
Add in the Windows fix.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
index 6514e1e775..a422f80079 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp
@@ -212,9 +212,10 @@ namespace OGL
GLint Supported;
glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &Supported);
- GLint Formats[Supported];
+ GLint *Formats = new GLint[Supported];
glGetIntegerv(GL_PROGRAM_BINARY_FORMATS, Formats);
ProgramFormat = (GLenum)Formats[0]; // We don't really care about format
+ delete[] Formats;
}
#endif
}