Add support for falling back to glBlendEquationEXT if necessary.

This should help keep LÖVE from crashing on old cards with crappy drivers.
This commit is contained in:
Bill Meltsner
2012-03-03 19:25:42 -05:00
parent 830283ff17
commit 57b4d2c5b9
4 changed files with 24 additions and 4 deletions
@@ -19,6 +19,7 @@
**/
#include "wrap_Graphics.h"
#include "GLee.h"
#include <graphics/DrawQable.h>
#include <image/ImageData.h>
#include <font/Rasterizer.h>
@@ -793,6 +794,9 @@ namespace opengl
if (!Image::hasNpot())
supported = false;
break;
case Graphics::SUPPORT_SUBTRACTIVE:
supported = (GLEE_VERSION_1_4 || GLEE_ARB_imaging) || (GLEE_EXT_blend_minmax && GLEE_EXT_blend_subtract);
break;
default:
supported = false;
}