added wgl_bind_to_texture_depth_nv to ConvertAttribWGLtoGLX

Chris Robinson chris.kcat at gmail.com
Tue Feb 5 16:29:58 CST 2008


On Tuesday 05 February 2008 02:09:09 pm Christopher Harvey wrote:
> @@ -758,6 +758,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr,
> int* oGLXAttr, Wine_GLPBuf nvfloatattrib = iWGLAttr[++cur];
>        TRACE("pAttr[%d] = WGL_FLOAT_COMPONENTS_NV: %x\n", cur,
> nvfloatattrib); break ;
> +    case WGL_BIND_TO_TEXTURE_DEPTH_NV:
>      case WGL_BIND_TO_TEXTURE_RGB_ARB:
>      case WGL_BIND_TO_TEXTURE_RGBA_ARB:
>      case WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV:

I don't think it's correct to add this since it's not supported (the extension 
string isn't exported and it can't be easilly emulated). If an app is trying 
to set that attribute without the extension being advertised, I'd say the app 
is broken. If you're intending on adding support, you may want to familiarize 
yourself with how wine emulates render_to_texture and look over the 
extension:
http://opengl.org/registry/specs/NV/render_depth_texture.txt



More information about the wine-devel mailing list