summaryrefslogtreecommitdiffstats
path: root/src/glx/apple
diff options
context:
space:
mode:
authorJeremy Huddleston <[email protected]>2010-04-02 01:35:19 -0700
committerJeremy Huddleston <[email protected]>2010-04-27 11:26:51 -0700
commit80b280db883edc9550484dba03bd5c124b6a9bf9 (patch)
tree89dfc9f512054dd78713fc56d1b2d9ff2206edf6 /src/glx/apple
parent77dc40b2897dfaf1b7adedee4bd0e88f13bc76d3 (diff)
apple: Change ifdefs for DRI to be DRI && !APPLE
Signed-off-by: Jeremy Huddleston <[email protected]>
Diffstat (limited to 'src/glx/apple')
-rw-r--r--src/glx/apple/Makefile4
-rw-r--r--src/glx/apple/apple_xgl_api_read.c6
-rw-r--r--src/glx/apple/apple_xgl_api_stereo.c4
-rw-r--r--src/glx/apple/apple_xgl_api_viewport.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile
index 314dd4d3965..4c05013f3f6 100644
--- a/src/glx/apple/Makefile
+++ b/src/glx/apple/Makefile
@@ -2,7 +2,7 @@ INSTALL_DIR = /usr/X11
X11_DIR = $(INSTALL_DIR)
CC=gcc
-GL_CFLAGS=-Wall -ggdb3 -Os -DPTHREADS -D_REENTRANT -DGLX_USE_APPLEGL -DGLX_ALIAS_UNSUPPORTED $(RC_CFLAGS) $(CFLAGS)
+GL_CFLAGS=-Wall -ggdb3 -Os -DPTHREADS -D_REENTRANT -DGLX_DIRECT_RENDERING -DGLX_USE_APPLEGL -DGLX_ALIAS_UNSUPPORTED $(RC_CFLAGS) $(CFLAGS)
GL_LDFLAGS=-L$(INSTALL_DIR)/lib -L$(X11_DIR)/lib $(LDFLAGS) -Wl,-single_module
TCLSH=tclsh8.5
@@ -12,7 +12,7 @@ INSTALL=install
LN=ln
RM=rm
-INCLUDE=-I. -Iinclude -Iinclude/internal -I.. -I../../../include -I$(INSTALL_DIR)/include -I$(X11_DIR)/include
+INCLUDE=-I. -Iinclude -Iinclude/internal -I.. -I../../../include -I../../../src/mesa -I../../../src/mesa/glapi -I$(INSTALL_DIR)/include -I$(X11_DIR)/include
COMPILE=$(CC) $(INCLUDE) $(GL_CFLAGS) -c
#The directory with the final binaries.
diff --git a/src/glx/apple/apple_xgl_api_read.c b/src/glx/apple/apple_xgl_api_read.c
index 3dcb31b71ae..36357c7fc2e 100644
--- a/src/glx/apple/apple_xgl_api_read.c
+++ b/src/glx/apple/apple_xgl_api_read.c
@@ -68,10 +68,10 @@ SetRead(struct apple_xgl_saved_state *saved)
saved->swapped = true;
- if (apple_glx_make_current_context(dpy, gc->apple, gc->apple,
+ if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext,
gc->currentReadable)) {
/* An error occurred, so try to restore the old context state. */
- (void) apple_glx_make_current_context(dpy, gc->apple, gc->apple,
+ (void) apple_glx_make_current_context(dpy, gc->driContext, gc->driContext,
gc->currentDrawable);
saved->swapped = false;
}
@@ -85,7 +85,7 @@ UnsetRead(struct apple_xgl_saved_state *saved)
GLXContext gc = __glXGetCurrentContext();
Display *dpy = glXGetCurrentDisplay();
- if (apple_glx_make_current_context(dpy, gc->apple, gc->apple,
+ if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext,
gc->currentDrawable)) {
/*
* An error occurred restoring the drawable.
diff --git a/src/glx/apple/apple_xgl_api_stereo.c b/src/glx/apple/apple_xgl_api_stereo.c
index b50e3119cdf..7dd946f764e 100644
--- a/src/glx/apple/apple_xgl_api_stereo.c
+++ b/src/glx/apple/apple_xgl_api_stereo.c
@@ -42,7 +42,7 @@ glDrawBuffer(GLenum mode)
{
GLXContext gc = glXGetCurrentContext();
- if (gc && apple_glx_context_uses_stereo(gc->apple)) {
+ if (gc && apple_glx_context_uses_stereo(gc->driContext)) {
GLenum buf[2];
GLsizei n = 0;
@@ -77,7 +77,7 @@ glDrawBuffers(GLsizei n, const GLenum * bufs)
{
GLXContext gc = glXGetCurrentContext();
- if (gc && apple_glx_context_uses_stereo(gc->apple)) {
+ if (gc && apple_glx_context_uses_stereo(gc->driContext)) {
GLenum newbuf[n + 2];
GLsizei i, outi = 0;
bool have_back = false;
diff --git a/src/glx/apple/apple_xgl_api_viewport.c b/src/glx/apple/apple_xgl_api_viewport.c
index d3fbc7c41e0..f556eefa226 100644
--- a/src/glx/apple/apple_xgl_api_viewport.c
+++ b/src/glx/apple/apple_xgl_api_viewport.c
@@ -38,8 +38,8 @@ glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
GLXContext gc = __glXGetCurrentContext();
Display *dpy = glXGetCurrentDisplay();
- if (gc && gc->apple)
- apple_glx_context_update(dpy, gc->apple);
+ if (gc && gc->driContext)
+ apple_glx_context_update(dpy, gc->driContext);
__gl_api.Viewport(x, y, width, height);
}