summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-10-17 17:43:47 +0000
committerBrian Paul <[email protected]>2006-10-17 17:43:47 +0000
commit55e42e5b7298bbf4c75f2472fc077743dd4d9b85 (patch)
tree8e501e7fad3c61d54e9a444beb7d15a82a2024df /src/mesa/main/context.c
parentaf52ff0c99faa88f2047c62bb5873ae9a427104d (diff)
check if ctx->Driver.GetBufferSize==NULL and no-op
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index f6f9e901267..e0630c33d0b 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1629,11 +1629,12 @@ static void
initialize_framebuffer_size(GLcontext *ctx, GLframebuffer *fb)
{
GLuint width, height;
- ASSERT(ctx->Driver.GetBufferSize);
- ctx->Driver.GetBufferSize(fb, &width, &height);
- if (ctx->Driver.ResizeBuffers)
- ctx->Driver.ResizeBuffers(ctx, fb, width, height);
- fb->Initialized = GL_TRUE;
+ if (ctx->Driver.GetBufferSize) {
+ ctx->Driver.GetBufferSize(fb, &width, &height);
+ if (ctx->Driver.ResizeBuffers)
+ ctx->Driver.ResizeBuffers(ctx, fb, width, height);
+ fb->Initialized = GL_TRUE;
+ }
}