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
359acf24
Commit
359acf24
authored
Sep 20, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Limit "NumSimultaneousRTs" to 4.
parent
5b8b97a7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+1
-0
device.c
dlls/d3d9/device.c
+12
-0
directx.c
dlls/d3d9/directx.c
+1
-0
No files found.
dlls/d3d9/d3d9_private.h
View file @
359acf24
...
...
@@ -529,6 +529,7 @@ typedef struct IDirect3DVertexShader9Impl {
}
IDirect3DVertexShader9Impl
;
#define D3D9_MAX_VERTEX_SHADER_CONSTANTF 256
#define D3D9_MAX_SIMULTANEOUS_RENDERTARGETS 4
/* --------------------- */
/* IDirect3DPixelShader9 */
...
...
dlls/d3d9/device.c
View file @
359acf24
...
...
@@ -992,6 +992,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetRenderTarget(LPDIRECT3DDEVICE9EX
HRESULT
hr
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
if
(
RenderTargetIndex
>=
D3D9_MAX_SIMULTANEOUS_RENDERTARGETS
)
{
WARN
(
"Invalid index %u specified.
\n
"
,
RenderTargetIndex
);
return
D3DERR_INVALIDCALL
;
}
wined3d_mutex_lock
();
hr
=
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
pSurface
?
pSurface
->
wineD3DSurface
:
NULL
);
wined3d_mutex_unlock
();
...
...
@@ -1010,6 +1016,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetRenderTarget(LPDIRECT3DDEVICE9EX
return
D3DERR_INVALIDCALL
;
}
if
(
RenderTargetIndex
>=
D3D9_MAX_SIMULTANEOUS_RENDERTARGETS
)
{
WARN
(
"Invalid index %u specified.
\n
"
,
RenderTargetIndex
);
return
D3DERR_INVALIDCALL
;
}
wined3d_mutex_lock
();
hr
=
IWineD3DDevice_GetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
&
pRenderTarget
);
...
...
dlls/d3d9/directx.c
View file @
359acf24
...
...
@@ -337,6 +337,7 @@ void filter_caps(D3DCAPS9* pCaps)
D3DPTEXTURECAPS_CUBEMAP_POW2
|
D3DPTEXTURECAPS_VOLUMEMAP_POW2
|
D3DPTEXTURECAPS_NOPROJECTEDBUMPENV
;
pCaps
->
MaxVertexShaderConst
=
min
(
D3D9_MAX_VERTEX_SHADER_CONSTANTF
,
pCaps
->
MaxVertexShaderConst
);
pCaps
->
NumSimultaneousRTs
=
min
(
D3D9_MAX_SIMULTANEOUS_RENDERTARGETS
,
pCaps
->
NumSimultaneousRTs
);
}
static
HRESULT
WINAPI
IDirect3D9Impl_GetDeviceCaps
(
LPDIRECT3D9EX
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DCAPS9
*
pCaps
)
{
...
...
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