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
6ac84072
Commit
6ac84072
authored
Dec 16, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Dec 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix bad TRACE
- fixed computation of memory used by a texture
parent
16fcd747
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
d3dtexture.c
dlls/ddraw/d3dtexture.c
+1
-2
main.c
dlls/ddraw/ddraw/main.c
+1
-1
No files found.
dlls/ddraw/d3dtexture.c
View file @
6ac84072
...
...
@@ -652,8 +652,7 @@ GL_IDirect3DTextureImpl_2_1T_Load(LPDIRECT3DTEXTURE2 iface,
if
(
glThis
->
loaded
==
FALSE
)
{
/* Only check memory for not already loaded texture... */
mem_used
=
This
->
surface_desc
.
dwHeight
*
This
->
surface_desc
.
dwHeight
*
This
->
surface_desc
.
u4
.
ddpfPixelFormat
.
u1
.
dwRGBBitCount
;
This
->
surface_desc
.
u1
.
lPitch
;
if
(
This
->
ddraw_owner
->
allocate_memory
(
This
->
ddraw_owner
,
mem_used
)
<
0
)
{
TRACE
(
" out of virtual memory... Warning application.
\n
"
);
return
D3DERR_TEXTURE_LOAD_FAILED
;
...
...
dlls/ddraw/ddraw/main.c
View file @
6ac84072
...
...
@@ -1115,7 +1115,7 @@ Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
if
(
TRACE_ON
(
ddraw
))
{
TRACE
(
" Asking for memory of type :
\n
"
);
DDRAW_dump_DDSCAPS2
(
ddscaps
);
DDRAW_dump_DDSCAPS2
(
ddscaps
);
DPRINTF
(
"
\n
"
);
}
/* We have 16 MB videomemory */
...
...
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