diff options
author | Ian Romanick <[email protected]> | 2004-06-02 20:45:19 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-06-02 20:45:19 +0000 |
commit | bb45fec07460748f7762e709eeed8b7111c5a3c8 (patch) | |
tree | 3d1e554e6f3ce50d1378e41423edc82c152a5b73 /src/mesa/drivers/dri/common/glcontextmodes.h | |
parent | 6632a751be851699eebc85082ebb83a2c3a9da79 (diff) |
Minor changes to make it work better outside X. "Success" is replaced
by explicit 0. Several functions that are not needed with
DRI_NEW_INTERFACE_ONLY are blocked with '#ifndef DRI_NEW_INTERFACE_ONLY'.
Some further work is still required to make it build without any X
include files, though.
Diffstat (limited to 'src/mesa/drivers/dri/common/glcontextmodes.h')
-rw-r--r-- | src/mesa/drivers/dri/common/glcontextmodes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/glcontextmodes.h b/src/mesa/drivers/dri/common/glcontextmodes.h index 5f8fa4f3116..8959e1d4ea9 100644 --- a/src/mesa/drivers/dri/common/glcontextmodes.h +++ b/src/mesa/drivers/dri/common/glcontextmodes.h @@ -32,10 +32,13 @@ #include "GL/internal/glcore.h" +#ifndef DRI_NEW_INTERFACE_ONLY extern GLint _gl_convert_from_x_visual_type( int visualType ); extern GLint _gl_convert_to_x_visual_type( int visualType ); extern void _gl_copy_visual_to_context_mode( __GLcontextModes * mode, const __GLXvisualConfig * config ); +#endif /* DRI_NEW_INTERFACE_ONLY */ + extern int _gl_get_context_mode_data( const __GLcontextModes *mode, int attribute, int *value_return ); extern __GLcontextModes * _gl_context_modes_create( unsigned count, |