gallium: added null ptr check

This commit is contained in:
Brian
2008-02-12 16:37:49 -07:00
parent 9677336845
commit a34b43b3f4
+1 -1
View File
@@ -1514,7 +1514,7 @@ st_finalize_texture(GLcontext *ctx,
/* Need to import images in main memory or held in other textures.
*/
if (stObj->pt != stImage->pt) {
if (stImage && stObj->pt != stImage->pt) {
copy_image_data_to_texture(ctx->st, stObj, level, stImage);
*needFlush = GL_TRUE;
}