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
2f34e74e
Commit
2f34e74e
authored
Jul 15, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some broken games do not put the TEXTURE flags in the surface caps.
parent
cc0b7efe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
main.c
dlls/ddraw/dsurface/main.c
+5
-1
No files found.
dlls/ddraw/dsurface/main.c
View file @
2f34e74e
...
...
@@ -203,7 +203,11 @@ Main_DirectDrawSurface_QueryInterface(LPDIRECTDRAWSURFACE7 iface, REFIID riid,
{
HRESULT
ret_value
=
S_OK
;
if
((
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
)
==
0
)
return
E_NOINTERFACE
;
/* Note: this is not exactly how Windows does it... But this seems not to hurt the only
application I know creating a texture without this flag set and it will prevent
bugs in other parts of Wine.
*/
This
->
surface_desc
.
ddsCaps
.
dwCaps
|=
DDSCAPS_TEXTURE
;
/* In case the texture surface was created before the D3D creation */
if
(
This
->
tex_private
==
NULL
)
{
...
...
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