From 55e42e5b7298bbf4c75f2472fc077743dd4d9b85 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 17 Oct 2006 17:43:47 +0000 Subject: check if ctx->Driver.GetBufferSize==NULL and no-op --- src/mesa/main/buffers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/buffers.c') diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 8d77b3cb8a..2710d04454 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; -- cgit v1.2.3