Bug 786383 - add MOZ_AVOID_OPENGL_ALTOGETHER option - r=karlt

This commit is contained in:
Benoit Jacob 2012-09-21 13:44:35 -04:00
parent b211dc6a94
commit 88a9c1dd5e

View File

@ -88,6 +88,9 @@ static void glxtest()
dup2(fd, i);
close(fd);
if (getenv("MOZ_AVOID_OPENGL_ALTOGETHER"))
fatal_error("The MOZ_AVOID_OPENGL_ALTOGETHER environment variable is defined");
///// Open libGL and load needed symbols /////
#ifdef __OpenBSD__
#define LIBGL_FILENAME "libGL.so"