mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
dri: set yInverted default to GL_TRUE
yInverted is used by EGL_NOK_texture_from_pixmap to indicate that window system rendering is y-inverted compared to OpenGL texture representation. This extension is only known to be used with X11 window system where sane default is GL_TRUE. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73371 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
f8c5b8a17d
commit
99abb87c63
1 changed files with 1 additions and 0 deletions
|
|
@ -308,6 +308,7 @@ driCreateConfigs(gl_format format,
|
||||||
__DRI_ATTRIB_TEXTURE_2D_BIT |
|
__DRI_ATTRIB_TEXTURE_2D_BIT |
|
||||||
__DRI_ATTRIB_TEXTURE_RECTANGLE_BIT;
|
__DRI_ATTRIB_TEXTURE_RECTANGLE_BIT;
|
||||||
|
|
||||||
|
modes->yInverted = GL_TRUE;
|
||||||
modes->sRGBCapable = is_srgb;
|
modes->sRGBCapable = is_srgb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue