diff options
author | Kristian Høgsberg <[email protected]> | 2010-02-26 14:49:31 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-02-26 14:52:14 -0500 |
commit | d7322c9d420e484bc3c7cecb873b04cf7da7f33a (patch) | |
tree | ce6c0c819ad98b83adf07d5477148c72da0ab170 /src/mesa/drivers/dri | |
parent | b056e1566268f6230c5a6f0dc06a9b4f8b22b168 (diff) |
intel: Lookup requested renderbuffer in intel_create_image_from_renderbuffer
Previously we'd use the current renderbuffer.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index f19e2ee81d4..bc394d048e2 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -30,6 +30,7 @@ #include "main/framebuffer.h" #include "main/renderbuffer.h" #include "main/hash.h" +#include "main/fbobject.h" #include "utils.h" #include "xmlpool.h" @@ -194,7 +195,7 @@ intel_create_image_from_renderbuffer(__DRIcontext *context, struct gl_renderbuffer *rb; struct intel_renderbuffer *irb; - rb = intel->ctx.CurrentRenderbuffer; + rb = _mesa_lookup_renderbuffer(&intel->ctx, renderbuffer); if (!rb) { _mesa_error(&intel->ctx, GL_INVALID_OPERATION, "glRenderbufferExternalMESA"); |