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
8a002b09
Commit
8a002b09
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_set_shader_blit should handle ENTER_GL/LEAVE_GL instead of the caller.
parent
06076371
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-0
surface.c
dlls/wined3d/surface.c
+2
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
8a002b09
...
...
@@ -3662,8 +3662,10 @@ static HRESULT arbfp_blit_set(IWineD3DDevice *iface, WINED3DFORMAT fmt, GLenum t
glDesc
->
conversion_group
!=
WINED3DFMT_YV12
)
{
TRACE
(
"Format: %s
\n
"
,
debug_d3dformat
(
glDesc
->
conversion_group
));
/* Don't bother setting up a shader for unconverted formats */
ENTER_GL
();
glEnable
(
textype
);
checkGLcall
(
"glEnable(textype)"
);
LEAVE_GL
();
return
WINED3D_OK
;
}
...
...
@@ -3691,12 +3693,14 @@ static HRESULT arbfp_blit_set(IWineD3DDevice *iface, WINED3DFORMAT fmt, GLenum t
shader
=
gen_yuv_shader
(
device
,
glDesc
->
conversion_group
,
textype
);
}
ENTER_GL
();
glEnable
(
GL_FRAGMENT_PROGRAM_ARB
);
checkGLcall
(
"glEnable(GL_FRAGMENT_PROGRAM_ARB)"
);
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
shader
));
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, shader)"
);
GL_EXTCALL
(
glProgramLocalParameter4fvARB
(
GL_FRAGMENT_PROGRAM_ARB
,
0
,
size
));
checkGLcall
(
"glProgramLocalParameter4fvARB"
);
LEAVE_GL
();
return
WINED3D_OK
;
}
...
...
dlls/wined3d/surface.c
View file @
8a002b09
...
...
@@ -3485,10 +3485,11 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
rect
.
y1
+=
This
->
currentDesc
.
Height
-
h
;
rect
.
y2
+=
This
->
currentDesc
.
Height
-
h
;
}
ENTER_GL
();
myDevice
->
blitter
->
set_shader
((
IWineD3DDevice
*
)
myDevice
,
Src
->
resource
.
format
,
Src
->
glDescription
.
target
,
Src
->
pow2Width
,
Src
->
pow2Height
);
ENTER_GL
();
/* Bind the texture */
glBindTexture
(
Src
->
glDescription
.
target
,
Src
->
glDescription
.
textureName
);
checkGLcall
(
"glBindTexture"
);
...
...
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