Skip to content

Dæmon window is empty and undefined until shaders are compiled #373

Description

@illwieckz

Dæmon window is empty and undefined until shaders are compiled

On slow hardware it can take a long time and the window displays garbage for all this time…

empty window

Maybe there is a way for SDL to fill the window with black before this:

// handle any OpenGL/GLSL brokenness here...
// nothing at present
#if defined( GLSL_COMPILE_STARTUP_ONLY )
GLSL_InitGPUShaders();
#endif

Or even earlier, right after that:

window = SDL_CreateWindow( CLIENT_WINDOW_TITLE, x, y, glConfig.vidWidth, glConfig.vidHeight, flags );
if ( !window )
{
logger.Warn("SDL_CreateWindow failed: %s\n", SDL_GetError() );
continue;
}
SDL_SetWindowIcon( window, icon );
glContext = SDL_GL_CreateContext( window );
if ( !glContext )
{
logger.Warn("SDL_GL_CreateContext failed: %s\n", SDL_GetError() );
continue;
}
SDL_GL_SetSwapInterval( r_swapInterval->integer );

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions