+void require_pixelformat(PixelFormat pf)
+{
+ switch(pf)
+ {
+ case RGB16F:
+ case RGB32F:
+ case RGBA16F:
+ case RGBA32F:
+ case LUMINANCE16F:
+ case LUMINANCE32F:
+ case LUMINANCE_ALPHA16F:
+ case LUMINANCE_ALPHA32F:
+ { static Require _req(ARB_texture_float); }
+ break;
+ case BGR:
+ case BGRA:
+ { static Require _req(EXT_bgra); }
+ break;
+ default:
+ break;
+ }
+}
+