From 7a5c8dd586ab0731c3ffceda2a7ccb8f64117d7a Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Fri, 22 May 2015 19:43:32 +0200 Subject: [PATCH] GL: Remove unused calls to glGetError() --- rpcs3/Emu/RSX/GL/GLProgram.cpp | 3 --- rpcs3/Emu/RSX/GL/GLProgramBuffer.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLProgram.cpp b/rpcs3/Emu/RSX/GL/GLProgram.cpp index 6f03a91043..8ead41e479 100644 --- a/rpcs3/Emu/RSX/GL/GLProgram.cpp +++ b/rpcs3/Emu/RSX/GL/GLProgram.cpp @@ -38,11 +38,8 @@ void GLProgram::Create(const u32 vp, const u32 fp) Delete(); id = glCreateProgram(); - GLuint res = glGetError(); glAttachShader(id, vp); - res = glGetError(); glAttachShader(id, fp); - res = glGetError(); glLinkProgram(id); diff --git a/rpcs3/Emu/RSX/GL/GLProgramBuffer.h b/rpcs3/Emu/RSX/GL/GLProgramBuffer.h index 6e7ff05fd6..9059520510 100644 --- a/rpcs3/Emu/RSX/GL/GLProgramBuffer.h +++ b/rpcs3/Emu/RSX/GL/GLProgramBuffer.h @@ -16,7 +16,6 @@ struct GLTraits { fragmentProgramData.Decompile(*RSXFP); fragmentProgramData.Compile(); - GLuint res = glGetError(); //checkForGlError("m_fragment_prog.Compile"); // TODO: This shouldn't use current dir @@ -28,7 +27,6 @@ struct GLTraits { vertexProgramData.Decompile(*RSXVP); vertexProgramData.Compile(); - GLuint res = glGetError(); //checkForGlError("m_vertex_prog.Compile"); // TODO: This shouldn't use current dir @@ -40,7 +38,6 @@ struct GLTraits { GLProgram *result = new GLProgram(); result->Create(vertexProgramData.id, fragmentProgramData.id); - GLuint res = glGetError(); //checkForGlError("m_program.Create"); result->Use();