Ignore:
Timestamp:
Apr 18, 2012, 8:20:30 PM (11 years ago)
Author:
sam
Message:

gpu: replace exit(0) in D3D error checks with lol::Abort().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/sdl/sdlapp.cpp

    r1212 r1236  
    103103    {
    104104#if defined USE_SDL && defined USE_D3D9
    105         g_d3ddevice->BeginScene();
     105        if (FAILED(g_d3ddevice->BeginScene()))
     106            Abort();
    106107#endif
    107108        /* Tick the renderer, show the frame and clamp to desired framerate. */
     
    109110#if defined USE_SDL
    110111#   if defined USE_D3D9
    111         g_d3ddevice->EndScene();
    112         g_d3ddevice->Present(NULL, NULL, NULL, NULL);
     112        if (FAILED(g_d3ddevice->EndScene()))
     113            Abort();
     114        if (FAILED(g_d3ddevice->Present(NULL, NULL, NULL, NULL)))
     115            Abort();
    113116#   else
    114117        SDL_GL_SwapBuffers();
Note: See TracChangeset for help on using the changeset viewer.