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
1bcd6e45
Commit
1bcd6e45
authored
Sep 03, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Sep 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of gl buffer variable in BltOverride.
Uses This == dstSwapchain->frontBuffer instead as suggested by Henri Verbeet.
parent
7c388168
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
surface.c
dlls/wined3d/surface.c
+1
-15
No files found.
dlls/wined3d/surface.c
View file @
1bcd6e45
...
...
@@ -3368,7 +3368,6 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
WINEDDCOLORKEY
oldBltCKey
=
Src
->
SrcBltCKey
;
RECT
SourceRectangle
;
BOOL
paletteOverride
=
FALSE
;
GLenum
buffer
;
TRACE
(
"Blt from surface %p to rendertarget %p
\n
"
,
Src
,
This
);
...
...
@@ -3442,18 +3441,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
/* Activate the destination context, set it up for blitting */
ActivateContext
(
myDevice
,
(
IWineD3DSurface
*
)
This
,
CTXUSAGE_BLIT
);
if
(
!
dstSwapchain
)
{
TRACE
(
"Drawing to offscreen buffer
\n
"
);
buffer
=
myDevice
->
offscreenBuffer
;
}
else
{
buffer
=
surface_get_gl_buffer
((
IWineD3DSurface
*
)
This
,
(
IWineD3DSwapChain
*
)
dstSwapchain
);
/* Front buffer coordinates are screen coordinates, while OpenGL coordinates are
* window relative. Also beware of the origin difference(top left vs bottom left).
* Also beware that the front buffer's surface size is screen width x screen height,
* whereas the real gl drawable size is the size of the window.
*/
if
(
buffer
==
GL_FRONT
)
{
if
(
dstSwapchain
&&
(
IWineD3DSurface
*
)
This
==
dstSwapchain
->
frontBuffer
)
{
RECT
windowsize
;
POINT
offset
=
{
0
,
0
};
UINT
h
;
...
...
@@ -3464,8 +3452,6 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
rect
.
y1
-=
offset
.
y
;
rect
.
y2
-=
offset
.
y
;
rect
.
y1
+=
This
->
currentDesc
.
Height
-
h
;
rect
.
y2
+=
This
->
currentDesc
.
Height
-
h
;
}
TRACE
(
"Drawing to %#x buffer
\n
"
,
buffer
);
}
ENTER_GL
();
myDevice
->
blitter
->
set_shader
((
IWineD3DDevice
*
)
myDevice
,
Src
->
resource
.
format
,
...
...
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