mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
glx: Correctly look up the dri2 context pointer for SetTexBuffer.
gc->driContext points at the second member of the dri2 context. The dri2 context is just a subclass of the GLX context. Fixes piglit tfp testcase.
This commit is contained in:
parent
d77bb8e059
commit
566373967a
1 changed files with 1 additions and 1 deletions
|
|
@ -647,13 +647,13 @@ dri2_bind_tex_image(Display * dpy,
|
|||
int buffer, const int *attrib_list)
|
||||
{
|
||||
GLXContext gc = __glXGetCurrentContext();
|
||||
struct dri2_context *pcp = (struct dri2_context *) gc;
|
||||
__GLXDRIdrawable *base = GetGLXDRIDrawable(dpy, drawable);
|
||||
__GLXdisplayPrivate *dpyPriv = __glXInitialize(dpy);
|
||||
struct dri2_drawable *pdraw = (struct dri2_drawable *) base;
|
||||
struct dri2_display *pdp =
|
||||
(struct dri2_display *) dpyPriv->dri2Display;
|
||||
struct dri2_screen *psc = (struct dri2_screen *) base->psc;
|
||||
struct dri2_context *pcp = (struct dri2_context *) gc->driContext;
|
||||
|
||||
if (pdraw != NULL) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue