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
bcb42011
Commit
bcb42011
authored
Nov 17, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Nov 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable support for creation FMT_Unknown textures. This gets most of
the d3d8 demos from www.codesampler.com working.
parent
04aa6a88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
device.c
dlls/wined3d/device.c
+21
-0
No files found.
dlls/wined3d/device.c
View file @
bcb42011
...
...
@@ -829,6 +829,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, UINT Wid
TRACE
(
"(%p), Width(%d) Height(%d) Levels(%d) Usage(%ld) ....
\n
"
,
This
,
Width
,
Height
,
Levels
,
Usage
);
/* TODO: It should only be possible to create textures for formats
that are reported as supported */
if
(
WINED3DFMT_UNKNOWN
>=
Format
)
{
WARN
(
"(%p) : Texture cannot be created with a format of D3DFMT_UNKNOWN
\n
"
,
This
);
return
D3DERR_INVALIDCALL
;
}
D3DCREATERESOURCEOBJECTINSTANCE
(
object
,
Texture
,
D3DRTYPE_TEXTURE
,
0
);
D3DINITILIZEBASETEXTURE
(
object
->
baseTexture
);
object
->
width
=
Width
;
...
...
@@ -907,6 +914,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *iface,
UINT
tmpH
;
UINT
tmpD
;
/* TODO: It should only be possible to create textures for formats
that are reported as supported */
if
(
WINED3DFMT_UNKNOWN
>=
Format
)
{
WARN
(
"(%p) : Texture cannot be created with a format of D3DFMT_UNKNOWN
\n
"
,
This
);
return
D3DERR_INVALIDCALL
;
}
D3DCREATERESOURCEOBJECTINSTANCE
(
object
,
VolumeTexture
,
D3DRTYPE_VOLUMETEXTURE
,
0
);
D3DINITILIZEBASETEXTURE
(
object
->
baseTexture
);
...
...
@@ -1000,6 +1014,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface, UINT
HRESULT
hr
;
unsigned
int
pow2EdgeLength
=
EdgeLength
;
/* TODO: It should only be possible to create textures for formats
that are reported as supported */
if
(
WINED3DFMT_UNKNOWN
>=
Format
)
{
WARN
(
"(%p) : Texture cannot be created with a format of D3DFMT_UNKNOWN
\n
"
,
This
);
return
D3DERR_INVALIDCALL
;
}
D3DCREATERESOURCEOBJECTINSTANCE
(
object
,
CubeTexture
,
D3DRTYPE_CUBETEXTURE
,
0
);
D3DINITILIZEBASETEXTURE
(
object
->
baseTexture
);
...
...
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