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
5de8cd3b
Commit
5de8cd3b
authored
Jun 01, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Adjust the video mem when dropping the pow2 size in GDISurface.
parent
349b93ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
surface_gdi.c
dlls/wined3d/surface_gdi.c
+4
-0
No files found.
dlls/wined3d/surface_gdi.c
View file @
5de8cd3b
...
...
@@ -1458,6 +1458,7 @@ IWineGDISurfaceImpl_PrivateSetup(IWineD3DSurface *iface)
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
HRESULT
hr
;
HDC
hdc
;
long
oldsize
=
This
->
resource
.
size
;
/* Sysmem textures have memory already allocated -
* release it, this avoids an unnecessary memcpy
...
...
@@ -1472,6 +1473,9 @@ IWineGDISurfaceImpl_PrivateSetup(IWineD3DSurface *iface)
This
->
pow2Height
=
This
->
currentDesc
.
Height
;
This
->
Flags
&=
~
SFLAG_NONPOW2
;
/* Adjust the opengl mem counter */
globalChangeGlRam
(
This
->
resource
.
size
-
oldsize
);
/* Call GetDC to create a DIB section. We will use that
* DIB section for rendering
*
...
...
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