mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
Bug #377: Make lib{glx,GLcore,dri} work when compiled as dlloader modules.
This commit is contained in:
parent
f15f881727
commit
799208dd44
9 changed files with 56 additions and 20 deletions
|
|
@ -76,7 +76,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
* struct. In particular, the contextCreate, pGlxVisual, numVisuals,
|
||||
* and numUsableVisuals fields must be initialized.
|
||||
*/
|
||||
__GLXscreenInfo __glDDXScreenInfo = {
|
||||
static __GLXscreenInfo __glDDXScreenInfo = {
|
||||
__MESA_screenProbe, /* Must be generic and handle all screens */
|
||||
__MESA_createContext, /* Substitute screen's createContext routine */
|
||||
__MESA_createBuffer, /* Substitute screen's createBuffer routine */
|
||||
|
|
@ -90,13 +90,21 @@ __GLXscreenInfo __glDDXScreenInfo = {
|
|||
NULL /* WrappedPositionWindow is overwritten */
|
||||
};
|
||||
|
||||
__GLXextensionInfo __glDDXExtensionInfo = {
|
||||
void *__glXglDDXScreenInfo(void) {
|
||||
return &__glDDXScreenInfo;
|
||||
}
|
||||
|
||||
static __GLXextensionInfo __glDDXExtensionInfo = {
|
||||
GL_CORE_MESA,
|
||||
__MESA_resetExtension,
|
||||
__MESA_initVisuals,
|
||||
__MESA_setVisualConfigs
|
||||
};
|
||||
|
||||
void *__glXglDDXExtensionInfo(void) {
|
||||
return &__glDDXExtensionInfo;
|
||||
}
|
||||
|
||||
static __MESA_screen MESAScreens[MAXSCREENS];
|
||||
static __GLcontext *MESA_CC = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue