Changeset 2313


Ignore:
Timestamp:
Feb 1, 2013, 10:21:47 PM (6 years ago)
Author:
sam
Message:

gpu: fix compilation on GL ES platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/texture.cpp

    r2312 r2313  
    135135        { GL_LUMINANCE8, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 },
    136136#elif defined __native_client__ || defined HAVE_GLES_2X
    137         { GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
     137        { GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
    138138        /* FIXME: if GL_RGBA is not available, we should advertise
    139139         * this format as "not available" on this platform. */
    140         { GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
    141         { GL_R8, GL_R8, GL_UNSIGNED_BYTE, 1 },
     140        { GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
     141        { GL_LUMINANCE, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 },
    142142#else
    143143        /* Seems efficient for little endian textures */
Note: See TracChangeset for help on using the changeset viewer.