Commit 0f1c2370 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Do not report pixel shaders if not supported.

parent 287f60a2
...@@ -2049,13 +2049,17 @@ static void shader_arb_get_caps(WINED3DDEVTYPE devtype, WineD3D_GL_Info *gl_info ...@@ -2049,13 +2049,17 @@ static void shader_arb_get_caps(WINED3DDEVTYPE devtype, WineD3D_GL_Info *gl_info
*/ */
none_shader_backend.shader_get_caps(devtype, gl_info, pCaps); none_shader_backend.shader_get_caps(devtype, gl_info, pCaps);
pCaps->VertexShaderVersion = WINED3DVS_VERSION(1,1); if(GL_SUPPORT(ARB_VERTEX_PROGRAM)) {
TRACE_(d3d_caps)("Hardware vertex shader version 1.1 enabled (ARB_PROGRAM)\n"); pCaps->VertexShaderVersion = WINED3DVS_VERSION(1,1);
pCaps->MaxVertexShaderConst = GL_LIMITS(vshader_constantsF); TRACE_(d3d_caps)("Hardware vertex shader version 1.1 enabled (ARB_PROGRAM)\n");
pCaps->MaxVertexShaderConst = GL_LIMITS(vshader_constantsF);
}
pCaps->PixelShaderVersion = WINED3DPS_VERSION(1,4); if(GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {
pCaps->PixelShader1xMaxValue = 8.0; pCaps->PixelShaderVersion = WINED3DPS_VERSION(1,4);
TRACE_(d3d_caps)("Hardware pixel shader version 1.4 enabled (ARB_PROGRAM)\n"); pCaps->PixelShader1xMaxValue = 8.0;
TRACE_(d3d_caps)("Hardware pixel shader version 1.4 enabled (ARB_PROGRAM)\n");
}
} }
static void shader_arb_load_init(void) { static void shader_arb_load_init(void) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment