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
5163a360
Commit
5163a360
authored
Oct 18, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: arbfp_blit_unset should call ENTER_GL/LEAVE_GL instead of the caller.
parent
8a002b09
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-0
surface.c
dlls/wined3d/surface.c
+3
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5163a360
...
...
@@ -3707,6 +3707,8 @@ static HRESULT arbfp_blit_set(IWineD3DDevice *iface, WINED3DFORMAT fmt, GLenum t
static
void
arbfp_blit_unset
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
iface
;
ENTER_GL
();
glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_FRAGMENT_PROGRAM_ARB)"
);
glDisable
(
GL_TEXTURE_2D
);
...
...
@@ -3719,6 +3721,7 @@ static void arbfp_blit_unset(IWineD3DDevice *iface) {
glDisable
(
GL_TEXTURE_RECTANGLE_ARB
);
checkGLcall
(
"glDisable(GL_TEXTURE_RECTANGLE_ARB)"
);
}
LEAVE_GL
();
}
static
BOOL
arbfp_blit_conv_supported
(
WINED3DFORMAT
fmt
)
{
...
...
dlls/wined3d/surface.c
View file @
5163a360
...
...
@@ -3556,8 +3556,6 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
glBindTexture
(
Src
->
glDescription
.
target
,
0
);
checkGLcall
(
"glBindTexture(Src->glDescription.target, 0)"
);
/* Leave the opengl state valid for blitting */
myDevice
->
blitter
->
unset_shader
((
IWineD3DDevice
*
)
myDevice
);
/* Restore the color key parameters */
Src
->
CKeyFlags
=
oldCKeyFlags
;
...
...
@@ -3569,6 +3567,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
LEAVE_GL
();
/* Leave the opengl state valid for blitting */
myDevice
->
blitter
->
unset_shader
((
IWineD3DDevice
*
)
myDevice
);
/* Flush in case the drawable is used by multiple GL contexts */
if
(
dstSwapchain
&&
(
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
frontBuffer
||
dstSwapchain
->
num_contexts
>=
2
))
glFlush
();
...
...
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