projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ca384
)
intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.
author
Eric Anholt
<eric@anholt.net>
Thu, 9 Dec 2010 21:45:47 +0000
(13:45 -0800)
committer
Eric Anholt
<eric@anholt.net>
Thu, 9 Dec 2010 22:41:50 +0000
(14:41 -0800)
Fixes texture-rg.
src/mesa/drivers/dri/intel/intel_tex_format.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_tex_format.c
b/src/mesa/drivers/dri/intel/intel_tex_format.c
index 9d73a2fb3757535e0e98d780fe427ddd9b9615eb..f8316ae2f8d26403e497b80739cae13439820eb8 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_tex_format.c
+++ b/
src/mesa/drivers/dri/intel/intel_tex_format.c
@@
-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: