Skip to content

Commit

Permalink
Remove erroneous newlines from Com_Error in sdl_glimp.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed May 29, 2019
1 parent 2a2646f commit 0fbde29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/sdl/sdl_glimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static qboolean GLimp_GetProcAddresses( qboolean fixedFunction ) {
version = (const char *)qglGetString( GL_VERSION );

if ( !version ) {
Com_Error( ERR_FATAL, "GL_VERSION is NULL\n" );
Com_Error( ERR_FATAL, "GL_VERSION is NULL" );
}

if ( Q_stricmpn( "OpenGL ES", version, 9 ) == 0 ) {
Expand Down Expand Up @@ -289,9 +289,9 @@ static qboolean GLimp_GetProcAddresses( qboolean fixedFunction ) {
QGL_ES_1_1_PROCS;
QGL_ES_1_1_FIXED_FUNCTION_PROCS;
// error so this doesn't segfault due to NULL desktop GL functions being used
Com_Error( ERR_FATAL, "Unsupported OpenGL Version: %s\n", version );
Com_Error( ERR_FATAL, "Unsupported OpenGL Version: %s", version );
} else {
Com_Error( ERR_FATAL, "Unsupported OpenGL Version (%s), OpenGL 1.2 is required\n", version );
Com_Error( ERR_FATAL, "Unsupported OpenGL Version (%s), OpenGL 1.2 is required", version );
}
} else {
if ( QGL_VERSION_ATLEAST( 2, 0 ) ) {
Expand All @@ -307,9 +307,9 @@ static qboolean GLimp_GetProcAddresses( qboolean fixedFunction ) {
QGL_1_5_PROCS;
QGL_2_0_PROCS;
// error so this doesn't segfault due to NULL desktop GL functions being used
Com_Error( ERR_FATAL, "Unsupported OpenGL Version: %s\n", version );
Com_Error( ERR_FATAL, "Unsupported OpenGL Version: %s", version );
} else {
Com_Error( ERR_FATAL, "Unsupported OpenGL Version (%s), OpenGL 2.0 is required\n", version );
Com_Error( ERR_FATAL, "Unsupported OpenGL Version (%s), OpenGL 2.0 is required", version );
}
}

Expand Down

0 comments on commit 0fbde29

Please sign in to comment.