@ -396,6 +396,8 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@@ -396,6 +396,8 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
caseGL_COMPRESSED_RGBA_S3TC_DXT3_EXT:
caseGL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
caseGL_COMPRESSED_RED_GREEN_RGTC2_EXT:
caseGL_COMPRESSED_LUMINANCE_ALPHA_ARB:
caseGL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI:
size=(((width+3)>>2)*((height+3)>>2)*16)*depth;
break;
caseGL_RGBA8:
@ -451,10 +453,14 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
@@ -451,10 +453,14 @@ static size_t GL_CalcTextureSize( GLenum format, int width, int height, int dept
size=width*height*depth*8;
break;
caseGL_RGB16F_ARB:
size=width*height*depth*6;
break;
caseGL_RGBA16F_ARB:
size=width*height*depth*8;
break;
caseGL_RGB32F_ARB:
size=width*height*depth*12;
break;
caseGL_RGBA32F_ARB:
size=width*height*depth*16;
break;
@ -661,7 +667,11 @@ static void GL_SetTextureFormat( gl_texture_t *tex, pixformat_t format, int chan
@@ -661,7 +667,11 @@ 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