summaryrefslogtreecommitdiff
path: root/src/mesa/main/buffers.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-10-17 17:43:47 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-10-17 17:43:47 +0000
commit55e42e5b7298bbf4c75f2472fc077743dd4d9b85 (patch)
tree8e501e7fad3c61d54e9a444beb7d15a82a2024df /src/mesa/main/buffers.c
parentaf52ff0c99faa88f2047c62bb5873ae9a427104d (diff)
check if ctx->Driver.GetBufferSize==NULL and no-op
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r--src/mesa/main/buffers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index 8d77b3cb8a0..2710d044545 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -604,6 +604,10 @@ void _mesa_resizebuffers( GLcontext *ctx )
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glResizeBuffersMESA\n");
+ if (!ctx->Driver.GetBufferSize) {
+ return;
+ }
+
if (ctx->WinSysDrawBuffer) {
GLuint newWidth, newHeight;
GLframebuffer *buffer = ctx->WinSysDrawBuffer;