Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
163ee765
Commit
163ee765
authored
May 25, 2006
by
Phil Costin
Committed by
Alexandre Julliard
May 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Shader caps fix - code relocation.
parent
54e5f9c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
directx.c
dlls/wined3d/directx.c
+10
-10
No files found.
dlls/wined3d/directx.c
View file @
163ee765
...
...
@@ -1696,6 +1696,16 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, WINED3D
*
pCaps
->
MaxStreams
=
MAX_STREAMS
;
*
pCaps
->
MaxStreamStride
=
1024
;
/* Determine shader mode to use based on GL caps */
if
(
GL_SUPPORT
(
ARB_SHADING_LANGUAGE_100
)
&&
wined3d_settings
.
glslRequested
&&
(
wined3d_settings
.
vs_mode
==
VS_HW
||
wined3d_settings
.
ps_mode
==
PS_HW
))
wined3d_settings
.
shader_mode
=
SHADER_GLSL
;
else
if
((
GL_SUPPORT
(
ARB_VERTEX_PROGRAM
)
&&
wined3d_settings
.
vs_mode
==
VS_HW
)
||
(
GL_SUPPORT
(
ARB_FRAGMENT_PROGRAM
)
&&
wined3d_settings
.
ps_mode
==
PS_HW
))
wined3d_settings
.
shader_mode
=
SHADER_ARB
;
else
wined3d_settings
.
shader_mode
=
SHADER_SW
;
if
(
wined3d_settings
.
vs_mode
==
VS_HW
&&
wined3d_settings
.
shader_mode
==
SHADER_GLSL
&&
DeviceType
!=
WINED3DDEVTYPE_REF
)
{
*
pCaps
->
VertexShaderVersion
=
D3DVS_VERSION
(
3
,
0
);
...
...
@@ -1846,16 +1856,6 @@ HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter, WINED3
IWineD3DImpl_FillGLCaps
(
&
This
->
gl_info
,
IWineD3DImpl_GetAdapterDisplay
(
iface
,
Adapter
));
LEAVE_GL
();
/* Determine shader mode to use based on GL caps */
if
(
GL_SUPPORT
(
ARB_SHADING_LANGUAGE_100
)
&&
wined3d_settings
.
glslRequested
&&
(
wined3d_settings
.
vs_mode
==
VS_HW
||
wined3d_settings
.
ps_mode
==
PS_HW
))
wined3d_settings
.
shader_mode
=
SHADER_GLSL
;
else
if
((
GL_SUPPORT
(
ARB_VERTEX_PROGRAM
)
&&
wined3d_settings
.
vs_mode
==
VS_HW
)
||
(
GL_SUPPORT
(
ARB_FRAGMENT_PROGRAM
)
&&
wined3d_settings
.
ps_mode
==
PS_HW
))
wined3d_settings
.
shader_mode
=
SHADER_ARB
;
else
wined3d_settings
.
shader_mode
=
SHADER_SW
;
/* set the state of the device to valid */
object
->
state
=
WINED3D_OK
;
...
...
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