mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.
Fixes texture-rg.
This commit is contained in:
parent
c3ca384e71
commit
b4e8ec3a57
1 changed files with 2 additions and 0 deletions
|
|
@ -204,11 +204,13 @@ intelChooseTextureFormat(struct gl_context * ctx, GLint internalFormat,
|
|||
* { R, G, 1.0, 1.0 } from a red-green texture would be useful.
|
||||
*/
|
||||
case GL_RED:
|
||||
case GL_COMPRESSED_RED:
|
||||
case GL_R8:
|
||||
return MESA_FORMAT_R8;
|
||||
case GL_R16:
|
||||
return MESA_FORMAT_R16;
|
||||
case GL_RG:
|
||||
case GL_COMPRESSED_RG:
|
||||
case GL_RG8:
|
||||
return MESA_FORMAT_RG88;
|
||||
case GL_RG16:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue