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
2e1e3d48
Commit
2e1e3d48
authored
Apr 09, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Apr 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make bind_fbo a bit more generic.
parent
75108443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
device.c
dlls/wined3d/device.c
+7
-7
No files found.
dlls/wined3d/device.c
View file @
2e1e3d48
...
@@ -5093,14 +5093,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetDepthStencilSurface(IWineD3DDevice
...
@@ -5093,14 +5093,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetDepthStencilSurface(IWineD3DDevice
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
static
void
bind_fbo
(
IWineD3DDevice
*
iface
)
{
static
void
bind_fbo
(
IWineD3DDevice
*
iface
,
GLenum
target
,
GLuint
*
fbo
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
if
(
!
This
->
fbo
)
{
if
(
!
*
fbo
)
{
GL_EXTCALL
(
glGenFramebuffersEXT
(
1
,
&
This
->
fbo
));
GL_EXTCALL
(
glGenFramebuffersEXT
(
1
,
fbo
));
checkGLcall
(
"glGenFramebuffersEXT()"
);
checkGLcall
(
"glGenFramebuffersEXT()"
);
}
}
GL_EXTCALL
(
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
This
->
fbo
));
GL_EXTCALL
(
glBindFramebufferEXT
(
target
,
*
fbo
));
checkGLcall
(
"glBindFramebuffer()"
);
checkGLcall
(
"glBindFramebuffer()"
);
}
}
...
@@ -5203,7 +5203,7 @@ void apply_fbo_state(IWineD3DDevice *iface) {
...
@@ -5203,7 +5203,7 @@ void apply_fbo_state(IWineD3DDevice *iface) {
unsigned
int
i
;
unsigned
int
i
;
if
(
This
->
render_offscreen
)
{
if
(
This
->
render_offscreen
)
{
bind_fbo
(
iface
);
bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
fbo
);
/* Apply render targets */
/* Apply render targets */
for
(
i
=
0
;
i
<
GL_LIMITS
(
buffers
);
++
i
)
{
for
(
i
=
0
;
i
<
GL_LIMITS
(
buffers
);
++
i
)
{
...
@@ -5787,13 +5787,13 @@ static void WINAPI IWineD3DDeviceImpl_ResourceReleased(IWineD3DDevice *iface, IW
...
@@ -5787,13 +5787,13 @@ static void WINAPI IWineD3DDeviceImpl_ResourceReleased(IWineD3DDevice *iface, IW
/* Cleanup any FBO attachments */
/* Cleanup any FBO attachments */
for
(
i
=
0
;
i
<
GL_LIMITS
(
buffers
);
++
i
)
{
for
(
i
=
0
;
i
<
GL_LIMITS
(
buffers
);
++
i
)
{
if
(
This
->
fbo_color_attachments
[
i
]
==
(
IWineD3DSurface
*
)
resource
)
{
if
(
This
->
fbo_color_attachments
[
i
]
==
(
IWineD3DSurface
*
)
resource
)
{
bind_fbo
(
iface
);
bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
fbo
);
set_render_target_fbo
(
iface
,
i
,
NULL
);
set_render_target_fbo
(
iface
,
i
,
NULL
);
This
->
fbo_color_attachments
[
i
]
=
NULL
;
This
->
fbo_color_attachments
[
i
]
=
NULL
;
}
}
}
}
if
(
This
->
fbo_depth_attachment
==
(
IWineD3DSurface
*
)
resource
)
{
if
(
This
->
fbo_depth_attachment
==
(
IWineD3DSurface
*
)
resource
)
{
bind_fbo
(
iface
);
bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
fbo
);
set_depth_stencil_fbo
(
iface
,
NULL
);
set_depth_stencil_fbo
(
iface
,
NULL
);
This
->
fbo_depth_attachment
=
NULL
;
This
->
fbo_depth_attachment
=
NULL
;
}
}
...
...
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