diff options
author | Brian Paul <[email protected]> | 2009-06-11 15:50:47 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-12 08:15:33 -0600 |
commit | fb64365642be82ac0dc0d43452afc4650d309b53 (patch) | |
tree | fa7c28933792d89ac948f503badc1476b7d5bb3f /progs/demos/Makefile | |
parent | 476685c63c15badd6c79a2794ae5cfb23a0a7ad4 (diff) |
demos: update fbotexture.c to use EXT or ARB functions exclusively
When the -arb option is specified we use GL_ARB_framebuffer_object intead
of GL_EXT_framebuffer_object.
For some vendors' OpenGL it's important to call the ARB entrypoints
instead of the EXT entrypoints to get correct behaviour. Use some
function pointer tricks to do this (instead of GLEW).
Diffstat (limited to 'progs/demos/Makefile')
-rw-r--r-- | progs/demos/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/demos/Makefile b/progs/demos/Makefile index c17595ec794..65fdbaaad8e 100644 --- a/progs/demos/Makefile +++ b/progs/demos/Makefile @@ -145,6 +145,13 @@ engine.o: engine.c trackball.h $(APP_CC) -c -I$(INCDIR) $(CFLAGS) engine.c +fbotexture: fbotexture.o + $(APP_CC) $(CFLAGS) $(LDFLAGS) fbotexture.o $(LIBS) -o $@ + +fbotexture.o: fbotexture.c extfuncs.h + $(APP_CC) -c -I$(INCDIR) $(CFLAGS) fbotexture.c + + fslight: fslight.o $(APP_CC) $(CFLAGS) $(LDFLAGS) fslight.o $(LIBS) -o $@ |