Ignore:
Timestamp:
Apr 18, 2012, 8:20:30 PM (8 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/video.cpp

    r1233 r1236  
    229229    ivec2 size = GetSize();
    230230#if defined USE_D3D9 || defined _XBOX
    231     VideoData::d3d_dev->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER
     231    if (FAILED(VideoData::d3d_dev->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER
    232232                                        | D3DCLEAR_STENCIL,
    233                               VideoData::clear_color, 1.0f, 0);
     233                              VideoData::clear_color, 1.0f, 0)))
     234        Abort();
    234235#else
    235236    glViewport(0, 0, size.x, size.y);
Note: See TracChangeset for help on using the changeset viewer.