diff options
author | Brian Paul <[email protected]> | 2005-09-23 01:20:09 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-23 01:20:09 +0000 |
commit | 0efc17c105f8239bf4fb128d570f2d343c45d430 (patch) | |
tree | 8ae8f47cecfb54ae1f13a93a81c5a76f37844ba2 /src/mesa/drivers/x11/xm_line.c | |
parent | e5fce1694cdfca615022bf7b987835384902aceb (diff) |
Add Wrapper field to gl_renderbuffer. Used for wrapping one renderbuffer
with another, such as wrapping a hardware/win-sys RGB renderbuffer with a
software-based alpha buffer.
Previous alpha buffer wrapping was conflicting with the X driver's
xmesa_renderbuffer structure containment/inheritance. That lead to
memory corruption.
Diffstat (limited to 'src/mesa/drivers/x11/xm_line.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_line.c b/src/mesa/drivers/x11/xm_line.c index 43de9a98ab7..6a045c85e6c 100644 --- a/src/mesa/drivers/x11/xm_line.c +++ b/src/mesa/drivers/x11/xm_line.c @@ -118,7 +118,7 @@ void xmesa_choose_point( GLcontext *ctx ) #define GET_XRB(XRB) struct xmesa_renderbuffer *XRB = \ - (struct xmesa_renderbuffer *) ctx->DrawBuffer->_ColorDrawBuffers[0][0] + (struct xmesa_renderbuffer *) ctx->DrawBuffer->_ColorDrawBuffers[0][0]->Wrapped /* |