Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3542c9c4
Commit
3542c9c4
authored
Dec 23, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Dec 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix mipmap texture creation
- some logging improvements
parent
19ef31e8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
d3dtexture.c
dlls/ddraw/d3dtexture.c
+4
-3
main.c
dlls/ddraw/ddraw/main.c
+1
-1
dib.c
dlls/ddraw/dsurface/dib.c
+8
-8
No files found.
dlls/ddraw/d3dtexture.c
View file @
3542c9c4
...
@@ -791,10 +791,11 @@ HRESULT d3dtexture_create(IDirect3DImpl *d3d, IDirectDrawSurfaceImpl *surf, BOOL
...
@@ -791,10 +791,11 @@ HRESULT d3dtexture_create(IDirect3DImpl *d3d, IDirectDrawSurfaceImpl *surf, BOOL
if
(
mipmap_level
==
0
)
{
if
(
mipmap_level
==
0
)
{
glGenTextures
(
1
,
&
(
private
->
tex_name
));
glGenTextures
(
1
,
&
(
private
->
tex_name
));
if
(
private
->
tex_name
==
0
)
ERR
(
"Error at creation of OpenGL texture ID !
\n
"
);
if
(
private
->
tex_name
==
0
)
ERR
(
"Error at creation of OpenGL texture ID !
\n
"
);
TRACE
(
" GL texture created
(private data at %p and GL id %d).
\n
"
,
private
,
private
->
tex_name
);
TRACE
(
" GL texture created
for surface %p (private data at %p and GL id %d).
\n
"
,
surf
,
private
,
private
->
tex_name
);
}
else
{
}
else
{
private
->
tex_name
=
((
IDirect3DTextureGLImpl
*
)
main
->
tex_private
)
->
tex_name
;
private
->
tex_name
=
((
IDirect3DTextureGLImpl
*
)
(
main
->
tex_private
))
->
tex_name
;
TRACE
(
" GL texture created (private data at %p and GL id reusing id %d).
\n
"
,
private
,
private
->
tex_name
);
TRACE
(
" GL texture created for surface %p (private data at %p and GL id reusing id %d from surface %p (%p)).
\n
"
,
surf
,
private
,
private
->
tex_name
,
main
,
main
->
tex_private
);
}
}
if
((
at_creation
==
FALSE
)
&&
if
((
at_creation
==
FALSE
)
&&
...
...
dlls/ddraw/ddraw/main.c
View file @
3542c9c4
...
@@ -397,7 +397,7 @@ create_texture(IDirectDrawImpl* This, const DDSURFACEDESC2 *pDDSD,
...
@@ -397,7 +397,7 @@ create_texture(IDirectDrawImpl* This, const DDSURFACEDESC2 *pDDSD,
IDirectDrawSurface7_Release
(
*
ppSurf
);
IDirectDrawSurface7_Release
(
*
ppSurf
);
return
hr
;
return
hr
;
}
}
if
(
This
->
d3d
)
This
->
d3d
->
create_texture
(
This
->
d3d
,
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
*
ppSurf
),
TRUE
,
if
(
This
->
d3d
)
This
->
d3d
->
create_texture
(
This
->
d3d
,
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
mipmap
),
TRUE
,
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
*
ppSurf
),
mipmap_level
);
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
*
ppSurf
),
mipmap_level
);
IDirectDrawSurface7_AddAttachedSurface
(
prev_mipmap
,
mipmap
);
IDirectDrawSurface7_AddAttachedSurface
(
prev_mipmap
,
mipmap
);
...
...
dlls/ddraw/dsurface/dib.c
View file @
3542c9c4
...
@@ -354,14 +354,6 @@ DIB_DirectDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
...
@@ -354,14 +354,6 @@ DIB_DirectDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
TRACE
(
"(%p)->(%p,%p,%p,%08lx,%p)
\n
"
,
This
,
rdst
,
src
,
rsrc
,
dwFlags
,
lpbltfx
);
TRACE
(
"(%p)->(%p,%p,%p,%08lx,%p)
\n
"
,
This
,
rdst
,
src
,
rsrc
,
dwFlags
,
lpbltfx
);
DD_STRUCT_INIT
(
&
ddesc
);
DD_STRUCT_INIT
(
&
sdesc
);
sdesc
.
dwSize
=
sizeof
(
sdesc
);
if
(
src
)
IDirectDrawSurface7_Lock
(
src
,
NULL
,
&
sdesc
,
DDLOCK_READONLY
,
0
);
ddesc
.
dwSize
=
sizeof
(
ddesc
);
IDirectDrawSurface7_Lock
(
iface
,
NULL
,
&
ddesc
,
DDLOCK_WRITEONLY
,
0
);
if
(
TRACE_ON
(
ddraw
))
{
if
(
TRACE_ON
(
ddraw
))
{
if
(
rdst
)
TRACE
(
"
\t
destrect :%dx%d-%dx%d
\n
"
,
rdst
->
left
,
rdst
->
top
,
rdst
->
right
,
rdst
->
bottom
);
if
(
rdst
)
TRACE
(
"
\t
destrect :%dx%d-%dx%d
\n
"
,
rdst
->
left
,
rdst
->
top
,
rdst
->
right
,
rdst
->
bottom
);
if
(
rsrc
)
TRACE
(
"
\t
srcrect :%dx%d-%dx%d
\n
"
,
rsrc
->
left
,
rsrc
->
top
,
rsrc
->
right
,
rsrc
->
bottom
);
if
(
rsrc
)
TRACE
(
"
\t
srcrect :%dx%d-%dx%d
\n
"
,
rsrc
->
left
,
rsrc
->
top
,
rsrc
->
right
,
rsrc
->
bottom
);
...
@@ -373,6 +365,14 @@ DIB_DirectDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
...
@@ -373,6 +365,14 @@ DIB_DirectDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
}
}
}
}
DD_STRUCT_INIT
(
&
ddesc
);
DD_STRUCT_INIT
(
&
sdesc
);
sdesc
.
dwSize
=
sizeof
(
sdesc
);
if
(
src
)
IDirectDrawSurface7_Lock
(
src
,
NULL
,
&
sdesc
,
DDLOCK_READONLY
,
0
);
ddesc
.
dwSize
=
sizeof
(
ddesc
);
IDirectDrawSurface7_Lock
(
iface
,
NULL
,
&
ddesc
,
DDLOCK_WRITEONLY
,
0
);
if
(
rdst
)
{
if
(
rdst
)
{
memcpy
(
&
xdst
,
rdst
,
sizeof
(
xdst
));
memcpy
(
&
xdst
,
rdst
,
sizeof
(
xdst
));
}
else
{
}
else
{
...
...
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