b=516213; followup fix for older linux systems; r=vlad
authorOlli Pettay <Olli.Pettay@gmail.com>
Fri, 18 Sep 2009 16:53:27 -0700
changeset 32874 7894972db2c0388aab585989d1ea1c4ae377a3a8
parent 32873 9c8802c69ed7466995c6c9b5dacd82a243adfd61
child 32875 e9466b0ebc31a03d093270975ea46fb84ad83c41
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvlad
bugs516213
milestone1.9.3a1pre
b=516213; followup fix for older linux systems; r=vlad
content/canvas/src/glwrap.cpp
content/canvas/src/nsGLPbuffer.h
--- a/content/canvas/src/glwrap.cpp
+++ b/content/canvas/src/glwrap.cpp
@@ -46,16 +46,17 @@
 #include "prlink.h"
 
 #include "glwrap.h"
 
 #define MAX_SYMBOL_LENGTH 128
 #define MAX_SYMBOL_NAMES 5
 
 #ifdef MOZ_X11
+#define GLX_GLXEXT_LEGACY
 #include <GL/glx.h>
 #endif
 
 bool
 LibrarySymbolLoader::OpenLibrary(const char *library)
 {
     PRLibSpec lspec;
     lspec.type = PR_LibSpec_Pathname;
--- a/content/canvas/src/nsGLPbuffer.h
+++ b/content/canvas/src/nsGLPbuffer.h
@@ -53,16 +53,17 @@
 #include "gfxDDrawSurface.h"
 #endif
 
 #if defined(XP_WIN)
 #include "gfxWindowsSurface.h"
 #endif
 
 #if defined(XP_UNIX) && defined(MOZ_X11)
+#define GLX_GLXEXT_LEGACY
 #include "GL/glx.h"
 #endif
 
 #ifdef XP_MACOSX
 #include "gfxQuartzImageSurface.h"
 #include <OpenGL/CGLTypes.h>
 #endif