Search
lxdream.org :: lxdream/src/pvr2/texcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/texcache.c
changeset 329:4b453d68e9ae
prev328:8da80d8342c5
next337:cdd757aa8e8c
author nkeynes
date Thu Jan 25 13:03:23 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Fix ARGB1555 texture
file annotate diff log raw
1.1 --- a/src/pvr2/texcache.c Thu Jan 25 12:55:31 2007 +0000
1.2 +++ b/src/pvr2/texcache.c Thu Jan 25 13:03:23 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: texcache.c,v 1.22 2007-01-25 12:55:31 nkeynes Exp $
1.6 + * $Id: texcache.c,v 1.23 2007-01-25 13:03:23 nkeynes Exp $
1.7 *
1.8 * Texture cache. Responsible for maintaining a working set of OpenGL
1.9 * textures.
1.10 @@ -311,7 +311,7 @@
1.11 switch( MMIO_READ( PVR2, RENDER_PALETTE ) & 0x03 ) {
1.12 case 0: /* ARGB1555 */
1.13 intFormat = GL_RGB5_A1;
1.14 - format = GL_RGBA;
1.15 + format = GL_BGRA;
1.16 type = GL_UNSIGNED_SHORT_1_5_5_5_REV;
1.17 break;
1.18 case 1: /* RGB565 */
1.19 @@ -335,7 +335,7 @@
1.20
1.21 case PVR2_TEX_FORMAT_ARGB1555:
1.22 intFormat = GL_RGB5_A1;
1.23 - format = GL_RGBA;
1.24 + format = GL_BGRA;
1.25 type = GL_UNSIGNED_SHORT_1_5_5_5_REV;
1.26 break;
1.27 case PVR2_TEX_FORMAT_RGB565:
.