mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Stub out glGetError() calls from the release build of the OpenGL plug-in (found by ector, code by LordMark). Gives a speed-up in the OpenGL plug-in.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6039 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ffef6affff
commit
c76ba17ff4
5 changed files with 12 additions and 20 deletions
4
Externals/SOIL/SOIL.c
vendored
4
Externals/SOIL/SOIL.c
vendored
|
@ -975,11 +975,11 @@ unsigned int
|
|||
void check_for_GL_errors( const char *calling_location )
|
||||
{
|
||||
/* check for errors */
|
||||
GLenum err_code = glGetError();
|
||||
GLenum err_code = GL_REPORT_ERROR();
|
||||
while( GL_NO_ERROR != err_code )
|
||||
{
|
||||
printf( "OpenGL Error @ %s: %i", calling_location, err_code );
|
||||
err_code = glGetError();
|
||||
err_code = GL_REPORT_ERROR();
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue