src/main/dummy/SDL_dummy_main.c
author Sam Lantinga
Fri, 27 Jan 2017 21:23:27 -0800
changeset 10861 71d8f9afb690
parent 8616 ec011c16e2fd
permissions -rw-r--r--
Fixed bug 3569 - GL_UpdateViewport leaves PROJECTION matrix selected

Tom Seddon

GL_ActivateRenderer may call GL_UpdateViewport, which leaves the GL_PROJECTION matrix selected. But after GL_ResetState, the GL_MODELVIEW matrix is selected, suggesting that's the intended default state.

It seems at least like these should be consistent. Presumably GL_UpdateViewport should be doing a glMatrixMode(GL_MODELVIEW) before it finishes.
slouken@8616
     1
/*
slouken@8616
     2
    SDL_dummy_main.c, placed in the public domain by Sam Lantinga  3/13/14
slouken@8616
     3
*/
slouken@8616
     4
#include "../../SDL_internal.h"
slouken@754
     5
slouken@754
     6
/* Include the SDL main definition header */
slouken@754
     7
#include "SDL_main.h"
slouken@846
     8
slouken@754
     9
#ifdef main
slouken@754
    10
#undef main
slouken@1895
    11
int
slouken@1895
    12
main(int argc, char *argv[])
slouken@754
    13
{
slouken@1895
    14
    return (SDL_main(argc, argv));
slouken@754
    15
}
slouken@846
    16
#else
slouken@1753
    17
/* Nothing to do on this platform */
slouken@1949
    18
int
slouken@4472
    19
SDL_main_stub_symbol(void);
slouken@4472
    20
slouken@4472
    21
int
slouken@4472
    22
SDL_main_stub_symbol(void)
slouken@1949
    23
{
slouken@1949
    24
    return 0;
slouken@1949
    25
}
slouken@846
    26
#endif
slouken@1949
    27
slouken@1895
    28
/* vi: set ts=4 sw=4 expandtab: */