texture compression: getting warmer
This commit is contained in:
@@ -57,7 +57,7 @@ texstore_rgb_dxt1(STORE_PARAMS)
|
||||
const GLchan *pixels;
|
||||
GLint srcRowStride;
|
||||
GLubyte *dst;
|
||||
const GLint texWidth = dstRowStride / 2; /* a bit of a hack */
|
||||
const GLint texWidth = dstRowStride * 4 / 8; /* a bit of a hack */
|
||||
const GLchan *tempImage = NULL;
|
||||
|
||||
ASSERT(dstFormat == &_mesa_texformat_rgb_dxt1);
|
||||
@@ -114,7 +114,7 @@ texstore_rgba_dxt1(STORE_PARAMS)
|
||||
const GLchan *pixels;
|
||||
GLint srcRowStride;
|
||||
GLubyte *dst;
|
||||
const GLint texWidth = dstRowStride / 2; /* a bit of a hack */
|
||||
const GLint texWidth = dstRowStride * 4 / 8; /* a bit of a hack */
|
||||
const GLchan *tempImage = NULL;
|
||||
|
||||
ASSERT(dstFormat == &_mesa_texformat_rgba_dxt1);
|
||||
@@ -169,7 +169,7 @@ texstore_rgba_dxt3(STORE_PARAMS)
|
||||
const GLchan *pixels;
|
||||
GLint srcRowStride;
|
||||
GLubyte *dst;
|
||||
const GLint texWidth = dstRowStride / 4; /* a bit of a hack */
|
||||
const GLint texWidth = dstRowStride * 4 / 16; /* a bit of a hack */
|
||||
const GLchan *tempImage = NULL;
|
||||
|
||||
ASSERT(dstFormat == &_mesa_texformat_rgba_dxt3);
|
||||
@@ -223,7 +223,7 @@ texstore_rgba_dxt5(STORE_PARAMS)
|
||||
const GLchan *pixels;
|
||||
GLint srcRowStride;
|
||||
GLubyte *dst;
|
||||
const GLint texWidth = dstRowStride / 4; /* a bit of a hack */
|
||||
const GLint texWidth = dstRowStride * 4 / 16; /* a bit of a hack */
|
||||
const GLchan *tempImage = NULL;
|
||||
|
||||
ASSERT(dstFormat == &_mesa_texformat_rgba_dxt5);
|
||||
|
Reference in New Issue
Block a user