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
d1291ba1
Commit
d1291ba1
authored
Jul 28, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better caps support (ie more in line with what GL reports).
parent
70d1136c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+0
-0
main.c
dlls/ddraw/main.c
+10
-2
mesa_private.h
dlls/ddraw/mesa_private.h
+3
-0
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
d1291ba1
This diff is collapsed.
Click to expand it.
dlls/ddraw/main.c
View file @
d1291ba1
...
...
@@ -67,6 +67,8 @@ BOOL opengl_initialized = 0;
#ifdef HAVE_OPENGL
#include "mesa_private.h"
static
void
*
gl_handle
=
NULL
;
#define GL_API_FUNCTION(f) typeof(f) * p##f;
...
...
@@ -80,7 +82,8 @@ static void *gl_handle = NULL;
static
BOOL
DDRAW_bind_to_opengl
(
void
)
{
char
*
glname
=
SONAME_LIBGL
;
BOOL
ret_value
;
gl_handle
=
wine_dlopen
(
glname
,
RTLD_NOW
,
NULL
,
0
);
if
(
!
gl_handle
)
{
WARN
(
"Wine cannot find the OpenGL graphics library (%s).
\n
"
,
glname
);
...
...
@@ -96,8 +99,13 @@ static BOOL DDRAW_bind_to_opengl( void )
#include "gl_api.h"
#undef GL_API_FUNCTION
return
TRUE
;
/* And now calls the function to initialize the various fields for the rendering devices */
ret_value
=
d3ddevice_init_at_startup
(
gl_handle
);
wine_dlclose
(
gl_handle
,
NULL
,
0
);
gl_handle
=
NULL
;
return
ret_value
;
sym_not_found:
WARN
(
"Wine cannot find certain functions that it needs inside the OpenGL
\n
"
"graphics library. To enable Wine to use OpenGL please upgrade
\n
"
...
...
dlls/ddraw/mesa_private.h
View file @
d1291ba1
...
...
@@ -169,6 +169,9 @@ extern HRESULT d3ddevice_enumerate(LPD3DENUMDEVICESCALLBACK cb, LPVOID context,
extern
HRESULT
d3ddevice_enumerate7
(
LPD3DENUMDEVICESCALLBACK7
cb
,
LPVOID
context
)
;
extern
HRESULT
d3ddevice_find
(
IDirectDrawImpl
*
d3d
,
LPD3DFINDDEVICESEARCH
lpD3DDFS
,
LPD3DFINDDEVICERESULT
lplpD3DDevice
);
/* Used by the DLL init routine to set-up the GL context and stuff properly */
extern
BOOL
d3ddevice_init_at_startup
(
void
*
gl_handle
);
/* Used to upload the texture */
extern
HRESULT
gltex_upload_texture
(
IDirectDrawSurfaceImpl
*
This
,
IDirect3DDeviceImpl
*
d3ddev
,
DWORD
stage
)
;
...
...
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