diff options
author | keithw <keithw> | 2000-08-29 16:57:02 +0000 |
---|---|---|
committer | keithw <keithw> | 2000-08-29 16:57:02 +0000 |
commit | c8f1e519637b7758bd35766f343ea84d2e875f97 (patch) | |
tree | d3bf12ccf54cf9e0d7af75e2bb73a0e3f48c72a2 /xc/lib | |
parent | 170501bfcf76527167d5d0464cad616d48cbea10 (diff) |
Make sure i810BufferSize returns uptodate values - fixes stencil resize
bug.
Diffstat (limited to 'xc/lib')
-rw-r--r-- | xc/lib/GL/mesa/src/drv/i810/i810dd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xc/lib/GL/mesa/src/drv/i810/i810dd.c b/xc/lib/GL/mesa/src/drv/i810/i810dd.c index 73e518fb8..6261a888f 100644 --- a/xc/lib/GL/mesa/src/drv/i810/i810dd.c +++ b/xc/lib/GL/mesa/src/drv/i810/i810dd.c @@ -77,8 +77,15 @@ static GLint i810GetParameteri(const GLcontext *ctx, GLint param) static void i810BufferSize(GLcontext *ctx, GLuint *width, GLuint *height) { i810ContextPtr imesa = I810_CONTEXT(ctx); + + /* Need to lock to make sure the driDrawable is uptodate. This + * information is used to resize Mesa's software buffers, so it has + * to be correct. + */ + LOCK_HARDWARE(imesa); *width = imesa->driDrawable->w; *height = imesa->driDrawable->h; + UNLOCK_HARDWARE(imesa); } |