larous25 / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

Bogus VidExt_GL_GetProcAddress #423

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The code for VidExt_GL_GetProcAddress is :

{{{
EXPORT void * CALL VidExt_GL_GetProcAddress(const char* Proc)
{
    if (!SDL_WasInit(SDL_INIT_VIDEO))
        return NULL;

    /* call video extension override if necessary */
    if (l_VideoExtensionActive)
        return (*l_ExternalVideoFuncTable.VidExtFuncGLGetProc)(Proc);

    return SDL_GL_GetProcAddress(Proc);
}
}}}

this is wrong; the check for the video extension needs to occur BEFORE checking 
SDL_WasInit(SDL_INIT_VIDEO), since the video extension probably does not use SDL

Original issue reported on code.google.com by auria...@gmail.com on 13 Apr 2011 at 5:24

GoogleCodeExporter commented 8 years ago
Fixed in core on 4/13/2011

Original comment by richard...@gmail.com on 13 Apr 2011 at 5:32