Skip to content
Snippets Groups Projects
Commit 7cd2ae9d authored by Brian Paul's avatar Brian Paul
Browse files

added stub functions for GLX_MESA_allocate_memory

parent 03dc4373
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Mesa 3-D graphics library * Mesa 3-D graphics library
* Version: 6.3 * Version: 6.3
* *
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"), * copy of this software and associated documentation files (the "Software"),
...@@ -1092,6 +1092,8 @@ glXFreeMemoryNV( GLvoid *pointer ) ...@@ -1092,6 +1092,8 @@ glXFreeMemoryNV( GLvoid *pointer )
} }
/*** GLX_MESA_agp_offset */ /*** GLX_MESA_agp_offset */
GLuint PUBLIC GLuint PUBLIC
...@@ -1106,6 +1108,32 @@ glXGetAGPOffsetMESA( const GLvoid *pointer ) ...@@ -1106,6 +1108,32 @@ glXGetAGPOffsetMESA( const GLvoid *pointer )
} }
/*** GLX_MESA_allocate_memory */
void *
glXAllocateMemoryMESA(Display *dpy, int scrn, size_t size,
float readfreq, float writefreq, float priority)
{
/* dummy */
return NULL;
}
void
glXFreeMemoryMESA(Display *dpy, int scrn, void *pointer)
{
/* dummy */
}
GLuint
glXGetMemoryOffsetMESA(Display *dpy, int scrn, const void *pointer)
{
/* dummy */
return 0;
}
/**********************************************************************/ /**********************************************************************/
/* GLX API management functions */ /* GLX API management functions */
/**********************************************************************/ /**********************************************************************/
...@@ -1148,9 +1176,6 @@ _glxapi_get_extensions(void) ...@@ -1148,9 +1176,6 @@ _glxapi_get_extensions(void)
#endif #endif
#ifdef GLX_SGIX_pbuffer #ifdef GLX_SGIX_pbuffer
"GLX_SGIX_pbuffer", "GLX_SGIX_pbuffer",
#endif
#ifdef GLX_ARB_render_texture
"GLX_ARB_render_texture",
#endif #endif
NULL NULL
}; };
...@@ -1332,6 +1357,11 @@ static struct name_address_pair GLX_functions[] = { ...@@ -1332,6 +1357,11 @@ static struct name_address_pair GLX_functions[] = {
/*** GLX_MESA_agp_offset ***/ /*** GLX_MESA_agp_offset ***/
{ "glXGetAGPOffsetMESA", (__GLXextFuncPtr) glXGetAGPOffsetMESA }, { "glXGetAGPOffsetMESA", (__GLXextFuncPtr) glXGetAGPOffsetMESA },
/*** GLX_MESA_allocate_memory ***/
{ "glXAllocateMemoryMESA", (__GLXextFuncPtr) glXAllocateMemoryMESA },
{ "glXFreeMemoryMESA", (__GLXextFuncPtr) glXFreeMemoryMESA },
{ "glXGetMemoryOffsetMESA", (__GLXextFuncPtr) glXGetMemoryOffsetMESA },
{ NULL, NULL } /* end of list */ { NULL, NULL } /* end of list */
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment