GL: Remove unused calls to glGetError()
This commit is contained in:
@@ -38,11 +38,8 @@ void GLProgram::Create(const u32 vp, const u32 fp)
|
|||||||
Delete();
|
Delete();
|
||||||
|
|
||||||
id = glCreateProgram();
|
id = glCreateProgram();
|
||||||
GLuint res = glGetError();
|
|
||||||
glAttachShader(id, vp);
|
glAttachShader(id, vp);
|
||||||
res = glGetError();
|
|
||||||
glAttachShader(id, fp);
|
glAttachShader(id, fp);
|
||||||
res = glGetError();
|
|
||||||
|
|
||||||
glLinkProgram(id);
|
glLinkProgram(id);
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ struct GLTraits
|
|||||||
{
|
{
|
||||||
fragmentProgramData.Decompile(*RSXFP);
|
fragmentProgramData.Decompile(*RSXFP);
|
||||||
fragmentProgramData.Compile();
|
fragmentProgramData.Compile();
|
||||||
GLuint res = glGetError();
|
|
||||||
//checkForGlError("m_fragment_prog.Compile");
|
//checkForGlError("m_fragment_prog.Compile");
|
||||||
|
|
||||||
// TODO: This shouldn't use current dir
|
// TODO: This shouldn't use current dir
|
||||||
@@ -28,7 +27,6 @@ struct GLTraits
|
|||||||
{
|
{
|
||||||
vertexProgramData.Decompile(*RSXVP);
|
vertexProgramData.Decompile(*RSXVP);
|
||||||
vertexProgramData.Compile();
|
vertexProgramData.Compile();
|
||||||
GLuint res = glGetError();
|
|
||||||
//checkForGlError("m_vertex_prog.Compile");
|
//checkForGlError("m_vertex_prog.Compile");
|
||||||
|
|
||||||
// TODO: This shouldn't use current dir
|
// TODO: This shouldn't use current dir
|
||||||
@@ -40,7 +38,6 @@ struct GLTraits
|
|||||||
{
|
{
|
||||||
GLProgram *result = new GLProgram();
|
GLProgram *result = new GLProgram();
|
||||||
result->Create(vertexProgramData.id, fragmentProgramData.id);
|
result->Create(vertexProgramData.id, fragmentProgramData.id);
|
||||||
GLuint res = glGetError();
|
|
||||||
//checkForGlError("m_program.Create");
|
//checkForGlError("m_program.Create");
|
||||||
result->Use();
|
result->Use();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user