Search
lxdream.org :: lxdream/src/pvr2/texcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/texcache.c
changeset 289:111dfb1516a6
prev287:fead4f5f3e2c
next291:cb3e8f0ac24a
author nkeynes
date Mon Jan 15 12:17:02 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Fix output of yuv_decode() (yes, again...)
file annotate diff log raw
1.1 --- a/src/pvr2/texcache.c Mon Jan 15 10:37:02 2007 +0000
1.2 +++ b/src/pvr2/texcache.c Mon Jan 15 12:17:02 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: texcache.c,v 1.12 2007-01-15 10:37:02 nkeynes Exp $
1.6 + * $Id: texcache.c,v 1.13 2007-01-15 12:17:02 nkeynes Exp $
1.7 *
1.8 * Texture cache. Responsible for maintaining a working set of OpenGL
1.9 * textures.
1.10 @@ -290,7 +290,7 @@
1.11 if( r > 255 ) { r = 255; } else if( r < 0 ) { r = 0; }
1.12 if( g > 255 ) { g = 255; } else if( g < 0 ) { g = 0; }
1.13 if( b > 255 ) { b = 255; } else if( b < 0 ) { b = 0; }
1.14 - return 0xFF000000 | (r<<24) | (g<<16) | (b<<16);
1.15 + return 0xFF000000 | (r<<16) | (g<<8) | (b);
1.16 }
1.17
1.18
.