projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cd9e5c
)
Check for a valid context
author
Alan Hourihane
<alanh@tungstengraphics.com>
Wed, 21 Jun 2006 10:58:04 +0000
(10:58 +0000)
committer
Alan Hourihane
<alanh@tungstengraphics.com>
Wed, 21 Jun 2006 10:58:04 +0000
(10:58 +0000)
src/mesa/main/framebuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/framebuffer.c
b/src/mesa/main/framebuffer.c
index 4c64281a6250dc67b6695e8a0bd45f0ef9bd89c1..612746adefedc95d1a9aad503466e90f51cf9a32 100644
(file)
--- a/
src/mesa/main/framebuffer.c
+++ b/
src/mesa/main/framebuffer.c
@@
-328,7
+328,8
@@
_mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
fb->Height = height;
/* to update scissor / window bounds */
- _mesa_update_draw_buffer_bounds(ctx);
+ if (ctx)
+ _mesa_update_draw_buffer_bounds(ctx);
}