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
7e4d3d95
Commit
7e4d3d95
authored
Nov 27, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Nov 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the initial FBO depth stencil when creating the device.
parent
9c1a61b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
device.c
dlls/wined3d/device.c
+5
-0
No files found.
dlls/wined3d/device.c
View file @
7e4d3d95
...
@@ -79,6 +79,8 @@ static void WINAPI IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3
...
@@ -79,6 +79,8 @@ static void WINAPI IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3
static
void
WINAPI
IWineD3DDeviceImpl_ApplyTextureUnitState
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
);
static
void
WINAPI
IWineD3DDeviceImpl_ApplyTextureUnitState
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
);
static
void
set_depth_stencil_fbo
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
depth_stencil
);
/* helper macros */
/* helper macros */
#define D3DMEMCHECK(object, ppResult) if(NULL == object) { *ppResult = NULL; WARN("Out of memory\n"); return WINED3DERR_OUTOFVIDEOMEMORY;}
#define D3DMEMCHECK(object, ppResult) if(NULL == object) { *ppResult = NULL; WARN("Out of memory\n"); return WINED3DERR_OUTOFVIDEOMEMORY;}
...
@@ -2090,6 +2092,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
...
@@ -2090,6 +2092,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
IWineD3DSurface_AddRef
(
This
->
renderTarget
);
IWineD3DSurface_AddRef
(
This
->
renderTarget
);
/* Depth Stencil support */
/* Depth Stencil support */
This
->
stencilBufferTarget
=
This
->
depthStencilBuffer
;
This
->
stencilBufferTarget
=
This
->
depthStencilBuffer
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
set_depth_stencil_fbo
(
iface
,
This
->
depthStencilBuffer
);
}
if
(
NULL
!=
This
->
stencilBufferTarget
)
{
if
(
NULL
!=
This
->
stencilBufferTarget
)
{
IWineD3DSurface_AddRef
(
This
->
stencilBufferTarget
);
IWineD3DSurface_AddRef
(
This
->
stencilBufferTarget
);
}
}
...
...
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