@@ -315,10 +315,10 @@ void gl_checkextensions()
315315 conoutf (Console_Init, " Using GL_EXT_gpu_shader4 extension." );
316316 }
317317 }
318- glRenderbufferStorageMultisample_ = ( PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) getprocaddress (" glRenderbufferStorageMultisample" );
318+ glRenderbufferStorageMultisample_ = reinterpret_cast < PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC>( getprocaddress (" glRenderbufferStorageMultisample" ) );
319319
320320 // OpenGL 3.2
321- glTexImage2DMultisample_ = ( PFNGLTEXIMAGE2DMULTISAMPLEPROC) getprocaddress (" glTexImage2DMultisample" );
321+ glTexImage2DMultisample_ = reinterpret_cast < PFNGLTEXIMAGE2DMULTISAMPLEPROC>( getprocaddress (" glTexImage2DMultisample" ) );
322322 if (hasext (" GL_EXT_framebuffer_multisample_blit_scaled" ))
323323 {
324324 hasFBMSBS = true ;
@@ -344,7 +344,7 @@ void gl_checkextensions()
344344 }
345345 if (hasext (" GL_EXT_depth_bounds_test" ))
346346 {
347- glDepthBounds_ = ( PFNGLDEPTHBOUNDSEXTPROC) getprocaddress (" glDepthBoundsEXT" );
347+ glDepthBounds_ = reinterpret_cast < PFNGLDEPTHBOUNDSEXTPROC>( getprocaddress (" glDepthBoundsEXT" ) );
348348 hasDBT = true ;
349349 if (debugexts)
350350 {
@@ -367,7 +367,7 @@ void gl_checkextensions()
367367
368368 if (glversion >= 430 || hasext (" GL_ARB_copy_image" ))
369369 {
370- glCopyImageSubData_ = ( PFNGLCOPYIMAGESUBDATAPROC) getprocaddress (" glCopyImageSubData" );
370+ glCopyImageSubData_ = reinterpret_cast < PFNGLCOPYIMAGESUBDATAPROC>( getprocaddress (" glCopyImageSubData" ) );
371371
372372 hasCI = true ;
373373 if (glversion < 430 && debugexts)
@@ -377,7 +377,7 @@ void gl_checkextensions()
377377 }
378378 else if (hasext (" GL_NV_copy_image" ))
379379 {
380- glCopyImageSubData_ = ( PFNGLCOPYIMAGESUBDATAPROC) getprocaddress (" glCopyImageSubDataNV" );
380+ glCopyImageSubData_ = reinterpret_cast < PFNGLCOPYIMAGESUBDATAPROC>( getprocaddress (" glCopyImageSubDataNV" ) );
381381
382382 hasCI = true ;
383383 if (debugexts)
0 commit comments