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
0161d6b6
Commit
0161d6b6
authored
May 26, 2006
by
Jason Green
Committed by
Alexandre Julliard
May 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Final move of the GLSL registry check (hopefully).
parent
ab2349da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
device.c
dlls/wined3d/device.c
+0
-11
directx.c
dlls/wined3d/directx.c
+11
-0
No files found.
dlls/wined3d/device.c
View file @
0161d6b6
...
...
@@ -1732,17 +1732,6 @@ HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPRESENT_P
IWineD3DDevice_SetViewport
((
IWineD3DDevice
*
)
This
,
&
vp
);
}
/* 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
;
/* Initialize the current view state */
This
->
modelview_valid
=
1
;
This
->
proj_valid
=
0
;
...
...
dlls/wined3d/directx.c
View file @
0161d6b6
...
...
@@ -746,6 +746,17 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
GLX_EXT_FUNCS_GEN
;
#undef USE_GL_FUNC
/* Determine shader mode to use based on GL caps */
if
(
gl_info
->
supported
[
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_info
->
supported
[
ARB_VERTEX_PROGRAM
]
&&
wined3d_settings
.
vs_mode
==
VS_HW
)
||
(
gl_info
->
supported
[
ARB_FRAGMENT_PROGRAM
]
&&
wined3d_settings
.
ps_mode
==
PS_HW
))
wined3d_settings
.
shader_mode
=
SHADER_ARB
;
else
wined3d_settings
.
shader_mode
=
SHADER_SW
;
/* If we created a dummy context, throw it away */
if
(
NULL
!=
fake_ctx
)
WineD3D_ReleaseFakeGLContext
(
fake_ctx
);
...
...
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