@ -386,6 +386,9 @@ static size_t GL_CalcImageSize( pixformat_t format, int width, int height, int d
@@ -386,6 +386,9 @@ static size_t GL_CalcImageSize( pixformat_t format, int width, int height, int d
break;
casePF_DXT3:
casePF_DXT5:
casePF_BC6H_SIGNED:
casePF_BC6H_UNSIGNED:
casePF_BC7:
casePF_ATI2:
size=(((width+3)>>2)*((height+3)>>2)*16)*depth;
break;
@ -417,6 +420,10 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@@ -417,6 +420,10 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
caseGL_COMPRESSED_RED_GREEN_RGTC2_EXT:
caseGL_COMPRESSED_LUMINANCE_ALPHA_ARB:
caseGL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI:
caseGL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB:
caseGL_COMPRESSED_RGBA_BPTC_UNORM_ARB:
caseGL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB:
caseGL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB:
size=(((width+3)>>2)*((height+3)>>2)*16)*depth;
break;
caseGL_RGBA8:
@ -694,6 +701,9 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
@@ -694,6 +701,9 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
casePF_DXT1:tex->format=GL_COMPRESSED_RGB_S3TC_DXT1_EXT;break;// never use DXT1 with 1-bit alpha