|
|
@ -583,7 +583,7 @@ int GL2_ShimInit( void ) |
|
|
|
|
|
|
|
|
|
|
|
gl2wrap_config.version = 310; |
|
|
|
gl2wrap_config.version = 310; |
|
|
|
if( gEngfuncs.Sys_CheckParm("-minshaders") ) |
|
|
|
if( gEngfuncs.Sys_CheckParm("-minshaders") ) |
|
|
|
gl2wrap_config.version = 110; |
|
|
|
gl2wrap_config.version = 100; |
|
|
|
if(gl2wrap_config.buf_storage) |
|
|
|
if(gl2wrap_config.buf_storage) |
|
|
|
gl2wrap_config.incremental = true, gl2wrap_config.vao_mandatory = true; |
|
|
|
gl2wrap_config.incremental = true, gl2wrap_config.vao_mandatory = true; |
|
|
|
if(!pglBindVertexArray || !gl2wrap_config.vao_mandatory) |
|
|
|
if(!pglBindVertexArray || !gl2wrap_config.vao_mandatory) |
|
|
@ -657,10 +657,14 @@ int GL2_ShimInit( void ) |
|
|
|
if(!GL2_InitProgs()) |
|
|
|
if(!GL2_InitProgs()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
gl2wrap_config.version = 110; |
|
|
|
gl2wrap_config.version = 110; |
|
|
|
|
|
|
|
if(!GL2_InitProgs()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
gl2wrap_config.version = 100; |
|
|
|
if(!GL2_InitProgs()) |
|
|
|
if(!GL2_InitProgs()) |
|
|
|
gEngfuncs.Host_Error("Failed to compile shaders!\n"); |
|
|
|
gEngfuncs.Host_Error("Failed to compile shaders!\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gl2wrap_init = 1; |
|
|
|
gl2wrap_init = 1; |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|