Module: wine Branch: master Commit: 95633ebbd17e3052d4e4522ac4b14dd37b73d7ea URL: https://gitlab.winehq.org/wine/wine/-/commit/95633ebbd17e3052d4e4522ac4b14dd...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Mar 18 14:35:50 2024 -0500
wined3d: Require ARB_texture_non_power_of_two.
Also allowing r500's "normalized texrect" functionality. Keeping WINED3D_GL_NORMALIZED_TEXRECT is far less invasive and painful than the rest of the NP2 fixup code.
---
dlls/wined3d/adapter_gl.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/wined3d/adapter_gl.c b/dlls/wined3d/adapter_gl.c index 2486686640f..bc9da1f0881 100644 --- a/dlls/wined3d/adapter_gl.c +++ b/dlls/wined3d/adapter_gl.c @@ -5330,6 +5330,13 @@ static BOOL wined3d_adapter_gl_init(struct wined3d_adapter_gl *adapter_gl, } }
+ if (!gl_info->supported[ARB_TEXTURE_NON_POWER_OF_TWO] && !gl_info->supported[WINED3D_GL_NORMALIZED_TEXRECT]) + { + ERR("Required extension ARB_texture_non_power_of_two is not supported.\n"); + wined3d_caps_gl_ctx_destroy(&caps_gl_ctx); + return FALSE; + } + if (gl_info->glsl_version <= MAKEDWORD_VERSION(1, 20)) { ERR("GLSL version %s is too low; 1.20 is required.\n",