summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-12 16:37:49 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-12 16:37:49 -0700
commita34b43b3f4817268ef4b3f186203b5fbafc7214e (patch)
tree610ab25fae12a1eb145fc42fa681161e90b5bae3 /src/mesa
parent9677336845511be4852520d2e50f91f1df362f58 (diff)
gallium: added null ptr check
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index fab9eafc7f..c6fe928d47 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -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;
}