mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
WIP
This commit is contained in:
parent
940a485206
commit
1fd5e9bb0b
@ -87,10 +87,17 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context,
|
|||||||
gltype = GL_UNSIGNED_BYTE;
|
gltype = GL_UNSIGNED_BYTE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* GLES doesn't have GL_RED, so use GL_ALPHA and use a swizzle later */
|
|
||||||
case COGL_PIXEL_FORMAT_R_8:
|
case COGL_PIXEL_FORMAT_R_8:
|
||||||
glintformat = GL_ALPHA;
|
if (cogl_has_feature (context, COGL_FEATURE_ID_TEXTURE_RG))
|
||||||
glformat = GL_ALPHA;
|
{
|
||||||
|
glintformat = GL_RED;
|
||||||
|
glformat = GL_R8;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
glintformat = GL_LUMINANCE;
|
||||||
|
glformat = GL_LUMINANCE;
|
||||||
|
}
|
||||||
gltype = GL_UNSIGNED_BYTE;
|
gltype = GL_UNSIGNED_BYTE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user