mirror of
https://github.com/UberGames/ioef.git
synced 2025-05-31 01:11:01 +00:00
parent
8bb2f9a5f5
commit
b096ca1d04
3 changed files with 30 additions and 0 deletions
|
@ -79,6 +79,7 @@ static SDL_Surface *screen = NULL;
|
|||
static const SDL_VideoInfo *videoInfo = NULL;
|
||||
|
||||
cvar_t *r_allowSoftwareGL; // Don't abort out if a hardware visual can't be obtained
|
||||
cvar_t *r_allowResize; // make window resizable
|
||||
cvar_t *r_sdlDriver;
|
||||
|
||||
void (APIENTRYP qglActiveTextureARB) (GLenum texture);
|
||||
|
@ -215,6 +216,9 @@ static int GLimp_SetMode( int mode, qboolean fullscreen )
|
|||
|
||||
ri.Printf( PRINT_ALL, "Initializing OpenGL display\n");
|
||||
|
||||
if ( r_allowResize->integer )
|
||||
flags |= SDL_RESIZABLE;
|
||||
|
||||
#if !SDL_VERSION_ATLEAST(1, 2, 10)
|
||||
// 1.2.10 is needed to get the desktop resolution
|
||||
displayAspect = 4.0f / 3.0f;
|
||||
|
@ -667,6 +671,7 @@ void GLimp_Init( void )
|
|||
{
|
||||
r_allowSoftwareGL = ri.Cvar_Get( "r_allowSoftwareGL", "0", CVAR_LATCH );
|
||||
r_sdlDriver = ri.Cvar_Get( "r_sdlDriver", "", CVAR_ROM );
|
||||
r_allowResize = ri.Cvar_Get( "r_allowResize", "0", CVAR_ARCHIVE );
|
||||
|
||||
Sys_GLimpInit( );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue