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
212bfab2
Commit
212bfab2
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 the width and height parameters to surface_allocate_surface().
parent
7f6ab3c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
surface.c
dlls/wined3d/surface.c
+5
-4
No files found.
dlls/wined3d/surface.c
View file @
212bfab2
...
...
@@ -797,9 +797,11 @@ static void surface_upload_data(IWineD3DSurfaceImpl *This, const struct wined3d_
* the correct texture. */
/* Context activation is done by the caller. */
static
void
surface_allocate_surface
(
IWineD3DSurfaceImpl
*
This
,
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_format_desc
*
format_desc
,
BOOL
srgb
,
GLsizei
width
,
GLsizei
height
)
const
struct
wined3d_format_desc
*
format_desc
,
BOOL
srgb
)
{
BOOL
enable_client_storage
=
FALSE
;
GLsizei
width
=
This
->
pow2Width
;
GLsizei
height
=
This
->
pow2Height
;
const
BYTE
*
mem
=
NULL
;
GLenum
internal
;
...
...
@@ -1531,7 +1533,7 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This, BOOL srgb)
if
(
!
(
This
->
Flags
&
alloc_flag
))
{
surface_allocate_surface
(
This
,
gl_info
,
This
->
resource
.
format_desc
,
srgb
,
This
->
pow2Width
,
This
->
pow2Height
);
surface_allocate_surface
(
This
,
gl_info
,
This
->
resource
.
format_desc
,
srgb
);
This
->
Flags
|=
alloc_flag
;
}
...
...
@@ -1570,8 +1572,7 @@ void surface_prepare_texture(IWineD3DSurfaceImpl *surface, const struct wined3d_
else
surface
->
Flags
&=
~
SFLAG_CONVERTED
;
surface_bind_and_dirtify
(
surface
,
srgb
);
surface_allocate_surface
(
surface
,
gl_info
,
&
desc
,
srgb
,
surface
->
pow2Width
,
surface
->
pow2Height
);
surface_allocate_surface
(
surface
,
gl_info
,
&
desc
,
srgb
);
surface
->
Flags
|=
alloc_flag
;
}
...
...
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