[intel] fix compressed image height
[mesa.git] / src / mesa / drivers / dri / intel / intel_tex_format.c
index 51ea1e69cb55acc47daf05b7e39b94917725220f..349a29bd714fecea8d816ed496dca72b36f5aabd 100644 (file)
@@ -16,7 +16,7 @@ intelChooseTextureFormat(GLcontext * ctx, GLint internalFormat,
                          GLenum format, GLenum type)
 {
    struct intel_context *intel = intel_context(ctx);
-   const GLboolean do32bpt = (intel->intelScreen->cpp == 4);
+   const GLboolean do32bpt = (intel->ctx.Visual.rgbBits == 32);
 
    switch (internalFormat) {
    case 4: