projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e134cf
)
check for ctx==NULL, bug 4087
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 15 Nov 2005 14:50:55 +0000
(14:50 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 15 Nov 2005 14:50:55 +0000
(14:50 +0000)
src/mesa/main/framebuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/framebuffer.c
b/src/mesa/main/framebuffer.c
index f2993b112bfd3333b616f5b6113ad222572e6300..956527efbc170eb8132cb54f63c4610d2efad395 100644
(file)
--- a/
src/mesa/main/framebuffer.c
+++ b/
src/mesa/main/framebuffer.c
@@
-226,7
+226,8
@@
_mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
fb->Height = height;
/* to update scissor / window bounds */
- ctx->NewState |= _NEW_BUFFERS;
+ if (ctx)
+ ctx->NewState |= _NEW_BUFFERS;
}