Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0f1c2370
Commit
0f1c2370
authored
Apr 01, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not report pixel shaders if not supported.
parent
287f60a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+10
-6
No files found.
dlls/wined3d/arb_program_shader.c
View file @
0f1c2370
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment