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
65797d7f
Commit
65797d7f
authored
Apr 15, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of glRect from IWineD3DSurfaceImpl.
604caf0c
supposedly removed the "oversized texture" code, but this was still left over.
parent
531219f8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
38 deletions
+7
-38
device.c
dlls/wined3d/device.c
+0
-4
surface.c
dlls/wined3d/surface.c
+7
-27
swapchain.c
dlls/wined3d/swapchain.c
+0
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-3
No files found.
dlls/wined3d/device.c
View file @
65797d7f
...
...
@@ -6196,10 +6196,6 @@ static HRESULT updateSurfaceDesc(IWineD3DSurfaceImpl *surface, const WINED3DPRES
while
(
surface
->
pow2Width
<
pPresentationParameters
->
BackBufferWidth
)
surface
->
pow2Width
<<=
1
;
while
(
surface
->
pow2Height
<
pPresentationParameters
->
BackBufferHeight
)
surface
->
pow2Height
<<=
1
;
}
surface
->
glRect
.
left
=
0
;
surface
->
glRect
.
top
=
0
;
surface
->
glRect
.
right
=
surface
->
pow2Width
;
surface
->
glRect
.
bottom
=
surface
->
pow2Height
;
if
(
surface
->
texture_name
)
{
...
...
dlls/wined3d/surface.c
View file @
65797d7f
...
...
@@ -1560,7 +1560,6 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This, BOOL srgb)
void
surface_prepare_texture
(
IWineD3DSurfaceImpl
*
surface
,
const
struct
wined3d_gl_info
*
gl_info
,
BOOL
srgb
)
{
DWORD
alloc_flag
=
srgb
?
SFLAG_SRGBALLOCATED
:
SFLAG_ALLOCATED
;
GLsizei
width
,
height
;
CONVERT_TYPES
convert
;
struct
wined3d_format_desc
desc
;
...
...
@@ -1570,19 +1569,9 @@ void surface_prepare_texture(IWineD3DSurfaceImpl *surface, const struct wined3d_
if
(
convert
!=
NO_CONVERSION
)
surface
->
Flags
|=
SFLAG_CONVERTED
;
else
surface
->
Flags
&=
~
SFLAG_CONVERTED
;
if
(
surface
->
Flags
&
SFLAG_NONPOW2
)
{
width
=
surface
->
pow2Width
;
height
=
surface
->
pow2Height
;
}
else
{
width
=
surface
->
glRect
.
right
-
surface
->
glRect
.
left
;
height
=
surface
->
glRect
.
bottom
-
surface
->
glRect
.
top
;
}
surface_bind_and_dirtify
(
surface
,
srgb
);
surface_allocate_surface
(
surface
,
gl_info
,
&
desc
,
srgb
,
width
,
height
);
surface_allocate_surface
(
surface
,
gl_info
,
&
desc
,
srgb
,
surface
->
pow2Width
,
surface
->
pow2Height
);
surface
->
Flags
|=
alloc_flag
;
}
...
...
@@ -3981,13 +3970,9 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
/* We should never use this surface in combination with OpenGL! */
TRACE
(
"(%p) Creating an oversized surface: %ux%u
\n
"
,
This
,
This
->
pow2Width
,
This
->
pow2Height
);
/* This will be initialized on the first blt */
This
->
glRect
.
left
=
0
;
This
->
glRect
.
top
=
0
;
This
->
glRect
.
right
=
0
;
This
->
glRect
.
bottom
=
0
;
}
else
{
}
else
{
/* Don't use ARB_TEXTURE_RECTANGLE in case the surface format is P8 and EXT_PALETTED_TEXTURE
is used in combination with texture uploads (RTL_READTEX/RTL_TEXTEX). The reason is that EXT_PALETTED_TEXTURE
doesn't work in combination with ARB_TEXTURE_RECTANGLE.
...
...
@@ -4002,11 +3987,6 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
This
->
pow2Height
=
This
->
currentDesc
.
Height
;
This
->
Flags
&=
~
(
SFLAG_NONPOW2
|
SFLAG_NORMCOORD
);
}
This
->
glRect
.
left
=
0
;
This
->
glRect
.
top
=
0
;
This
->
glRect
.
right
=
This
->
pow2Width
;
This
->
glRect
.
bottom
=
This
->
pow2Height
;
}
if
(
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
{
...
...
@@ -4548,8 +4528,8 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadLocation(IWineD3DSurface *iface, D
*/
if
(
mem
||
(
This
->
Flags
&
SFLAG_PBO
))
{
surface_upload_data
(
This
,
gl_info
,
&
desc
,
srgb
,
This
->
glRect
.
right
-
This
->
glRect
.
left
,
This
->
glRect
.
bottom
-
This
->
glRect
.
top
,
mem
);
surface_upload_data
(
This
,
gl_info
,
&
desc
,
srgb
,
This
->
pow2Width
,
This
->
pow2Height
,
mem
);
}
}
...
...
dlls/wined3d/swapchain.c
View file @
65797d7f
...
...
@@ -256,10 +256,6 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
cursor
.
texture_level
=
0
;
cursor
.
currentDesc
.
Width
=
This
->
device
->
cursorWidth
;
cursor
.
currentDesc
.
Height
=
This
->
device
->
cursorHeight
;
cursor
.
glRect
.
left
=
0
;
cursor
.
glRect
.
top
=
0
;
cursor
.
glRect
.
right
=
cursor
.
currentDesc
.
Width
;
cursor
.
glRect
.
bottom
=
cursor
.
currentDesc
.
Height
;
/* The cursor must have pow2 sizes */
cursor
.
pow2Width
=
cursor
.
currentDesc
.
Width
;
cursor
.
pow2Height
=
cursor
.
currentDesc
.
Height
;
...
...
dlls/wined3d/wined3d_private.h
View file @
65797d7f
...
...
@@ -2065,9 +2065,6 @@ struct IWineD3DSurfaceImpl
/* A method to retrieve the drawable size. Not in the Vtable to make it changeable */
void
(
*
get_drawable_size
)(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
);
/* Oversized texture */
RECT
glRect
;
/* PBO */
GLuint
pbo
;
GLuint
texture_name
;
...
...
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