radeon: on update drawable don't firevertices as it might be call from GetLock
authorJerome Glisse <glisse@freedesktop.org>
Mon, 25 May 2009 14:05:45 +0000 (16:05 +0200)
committerJerome Glisse <glisse@freedesktop.org>
Mon, 25 May 2009 14:05:45 +0000 (16:05 +0200)
To avoid locking bug we shouldn't not call firevertices from this path
as it's call from radeon get lock.

src/mesa/drivers/dri/radeon/radeon_common.c

index e2e0ba07a3b6da9feb546546d7baef5f6ae60e46..466eda784efca2d891fa04bb572086890133ec3e 100644 (file)
@@ -769,9 +769,7 @@ void radeon_draw_buffer(GLcontext *ctx, struct gl_framebuffer *fb)
 
        /* Set state we know depends on drawable parameters:
         */
-       if (ctx->Driver.Scissor)
-               ctx->Driver.Scissor(ctx, ctx->Scissor.X, ctx->Scissor.Y,
-                                   ctx->Scissor.Width, ctx->Scissor.Height);
+       radeonUpdateScissor(ctx);
        radeon->NewGLState |= _NEW_SCISSOR;
 
        if (ctx->Driver.DepthRange)