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
74d0d4c5
Commit
74d0d4c5
authored
Sep 26, 2002
by
Christian Costa
Committed by
Alexandre Julliard
Sep 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable creation of our OpenGL Direct3D device from a surface used as
rendering target. Enable creation of a texture from a surface.
parent
4b9344eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
main.c
dlls/ddraw/dsurface/main.c
+19
-0
No files found.
dlls/ddraw/dsurface/main.c
View file @
74d0d4c5
...
...
@@ -24,6 +24,7 @@
#include <assert.h>
#include <string.h>
#include "mesa_private.h"
#include "wine/debug.h"
#include "ddraw_private.h"
#include "dsurface/main.h"
...
...
@@ -158,6 +159,24 @@ Main_DirectDrawSurface_QueryInterface(LPDIRECTDRAWSURFACE7 iface, REFIID riid,
*
ppObj
=
ICOM_INTERFACE
(
This
,
IDirectDrawGammaControl
);
return
S_OK
;
}
#ifdef HAVE_OPENGL
else
if
(
IsEqualGUID
(
&
IID_D3DDEVICE_OpenGL
,
riid
)
)
{
This
->
ref
++
;
return
is_OpenGL_dx3
(
riid
,
This
,
(
IDirect3DDeviceImpl
**
)
ppObj
)
?
S_OK
:
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
)
)
{
LPDIRECT3DTEXTURE
iface
;
This
->
ref
++
;
iface
=
d3dtexture_create
(
This
);
if
(
iface
)
{
*
ppObj
=
(
LPVOID
)
iface
;
return
S_OK
;
}
else
return
E_NOINTERFACE
;
}
#endif
else
return
E_NOINTERFACE
;
}
...
...
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