Ignore:
Timestamp:
Feb 8, 2011, 11:28:29 PM (9 years ago)
Author:
sam
Message:

Allow to specify FPS in the DebugRecord object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r221 r615  
    121121    glPixelStorei(GL_PACK_ALIGNMENT, 1);
    122122
     123#if defined GL_BGRA
     124    glReadPixels(0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer);
     125#else
    123126    glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
     127#endif
    124128
    125129    for (int j = 0; j < height / 2; j++)
Note: See TracChangeset for help on using the changeset viewer.