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
30724a6e
Commit
30724a6e
authored
Jul 16, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Find the shader constant limit at adapter init time.
parent
b9379fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
directx.c
dlls/wined3d/directx.c
+4
-4
No files found.
dlls/wined3d/directx.c
View file @
30724a6e
...
...
@@ -2471,10 +2471,6 @@ static HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter,
object
->
shader_backend
=
&
none_shader_backend
;
}
/* This function should *not* be modifying GL caps
* TODO: move the functionality where it belongs */
select_shader_max_constants
(
object
->
ps_selected_mode
,
object
->
vs_selected_mode
,
&
GLINFO_LOCATION
);
/* set the state of the device to valid */
object
->
state
=
WINED3D_OK
;
...
...
@@ -2522,6 +2518,7 @@ ULONG WINAPI D3DCB_DefaultDestroyVolume(IWineD3DVolume *pVolume) {
BOOL
InitAdapters
(
void
)
{
HDC
device_context
;
BOOL
ret
;
int
ps_selected_mode
,
vs_selected_mode
;
/* No need to hold any lock. The calling library makes sure only one thread calls
* wined3d simultaneously
...
...
@@ -2559,6 +2556,9 @@ BOOL InitAdapters(void) {
}
Adapters
[
0
].
driver
=
"Display"
;
Adapters
[
0
].
description
=
"Direct3D HAL"
;
select_shader_mode
(
&
Adapters
[
0
].
gl_info
,
WINED3DDEVTYPE_HAL
,
&
ps_selected_mode
,
&
vs_selected_mode
);
select_shader_max_constants
(
ps_selected_mode
,
vs_selected_mode
,
&
Adapters
[
0
].
gl_info
);
}
numAdapters
=
1
;
TRACE
(
"%d adapters successfully initialized
\n
"
,
numAdapters
);
...
...
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