diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2011-12-25 12:21:31 -0600 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@RH-Live.(none)> | 2012-10-09 23:43:22 -0500 |
| commit | c4e7a288e5390ccd0920812c11ff3c42fc691294 (patch) | |
| tree | c00e60914dd461f8fbe3f11b8d1672f686634ea8 /Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.cpp | |
| parent | ee529b7125670a803d22b5dfd1151f2ab5c5bf3c (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.cpp | 3 |
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 } |
