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
ff82e66a
Commit
ff82e66a
authored
Apr 01, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Apr 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move upsideDown calculation to blit implementation.
parent
29937272
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
46 deletions
+53
-46
device.c
dlls/wined3d/device.c
+6
-12
surface.c
dlls/wined3d/surface.c
+46
-33
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
ff82e66a
...
...
@@ -5683,7 +5683,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetDepthStencilSurface(IWineD3DDevice
}
void
stretch_rect_fbo
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
src_surface
,
const
RECT
*
src_rect_in
,
IWineD3DSurface
*
dst_surface
,
const
RECT
*
dst_rect_in
,
const
WINED3DTEXTUREFILTERTYPE
filter
,
BOOL
flip
)
IWineD3DSurface
*
dst_surface
,
const
RECT
*
dst_rect_in
,
const
WINED3DTEXTUREFILTERTYPE
filter
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
GLbitfield
mask
=
GL_COLOR_BUFFER_BIT
;
/* TODO: Support blitting depth/stencil surfaces */
...
...
@@ -5693,8 +5693,8 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, const
POINT
offset
=
{
0
,
0
};
RECT
src_rect
,
dst_rect
;
TRACE
(
"(%p) : src_surface %p, src_rect_in %p, dst_surface %p, dst_rect_in %p, filter %s (0x%08x)
, flip %u
\n
"
,
This
,
src_surface
,
src_rect_in
,
dst_surface
,
dst_rect_in
,
debug_d3dtexturefiltertype
(
filter
),
filter
,
flip
);
TRACE
(
"(%p) : src_surface %p, src_rect_in %p, dst_surface %p, dst_rect_in %p, filter %s (0x%08x)
\n
"
,
This
,
src_surface
,
src_rect_in
,
dst_surface
,
dst_rect_in
,
debug_d3dtexturefiltertype
(
filter
),
filter
);
TRACE
(
"src_rect_in %s
\n
"
,
wine_dbgstr_rect
(
src_rect_in
));
TRACE
(
"dst_rect_in %s
\n
"
,
wine_dbgstr_rect
(
dst_rect_in
));
...
...
@@ -5807,15 +5807,9 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, const
glDisable
(
GL_SCISSOR_TEST
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_SCISSORTESTENABLE
));
if
(
flip
)
{
gl_info
->
fbo_ops
.
glBlitFramebuffer
(
src_rect
.
left
,
src_rect
.
top
,
src_rect
.
right
,
src_rect
.
bottom
,
dst_rect
.
left
,
dst_rect
.
bottom
,
dst_rect
.
right
,
dst_rect
.
top
,
mask
,
gl_filter
);
checkGLcall
(
"glBlitFramebuffer()"
);
}
else
{
gl_info
->
fbo_ops
.
glBlitFramebuffer
(
src_rect
.
left
,
src_rect
.
top
,
src_rect
.
right
,
src_rect
.
bottom
,
dst_rect
.
left
,
dst_rect
.
top
,
dst_rect
.
right
,
dst_rect
.
bottom
,
mask
,
gl_filter
);
checkGLcall
(
"glBlitFramebuffer()"
);
}
gl_info
->
fbo_ops
.
glBlitFramebuffer
(
src_rect
.
left
,
src_rect
.
top
,
src_rect
.
right
,
src_rect
.
bottom
,
dst_rect
.
left
,
dst_rect
.
top
,
dst_rect
.
right
,
dst_rect
.
bottom
,
mask
,
gl_filter
);
checkGLcall
(
"glBlitFramebuffer()"
);
LEAVE_GL
();
...
...
dlls/wined3d/surface.c
View file @
ff82e66a
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
ff82e66a
...
...
@@ -3033,7 +3033,7 @@ static inline BOOL use_ps(IWineD3DStateBlockImpl *stateblock)
void
stretch_rect_fbo
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
src_surface
,
const
RECT
*
src_rect
,
IWineD3DSurface
*
dst_surface
,
const
RECT
*
dst_rect
,
const
WINED3DTEXTUREFILTERTYPE
filter
,
BOOL
flip
)
DECLSPEC_HIDDEN
;
const
WINED3DTEXTUREFILTERTYPE
filter
)
DECLSPEC_HIDDEN
;
/* The WNDCLASS-Name for the fake window which we use to retrieve the GL capabilities */
#define WINED3D_OPENGL_WINDOW_CLASS_NAME "WineD3D_OpenGL"
...
...
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