]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/pixelformat.cpp
Remove remaining deprecated things from the core classes
[libs/gl.git] / source / core / pixelformat.cpp
index cfbf8112e2278477dec5ae8d0d79928f59371a0d..270f27f7dc2e4fe9e608471c37ebf015830a3f9a 100644 (file)
@@ -1,4 +1,10 @@
+#include <msp/gl/extensions/arb_depth_buffer_float.h>
+#include <msp/gl/extensions/arb_depth_texture.h>
 #include <msp/gl/extensions/arb_texture_float.h>
+#include <msp/gl/extensions/arb_texture_rg.h>
+#include <msp/gl/extensions/ext_texture_srgb.h>
+#include <msp/gl/extensions/oes_required_internalformat.h>
+#include <msp/gl/extensions/oes_texture_stencil8.h>
 #include <msp/io/print.h>
 #include <msp/strings/format.h>
 #include "pixelformat.h"
@@ -81,19 +87,7 @@ void operator>>(const LexicalConverter &conv, PixelFormat &fmt)
        else if(conv.get()=="DEPTH_COMPONENT32F")
                fmt = DEPTH_COMPONENT32F;
        else
-       {
-               if(conv.get()=="SRGB")
-                       fmt = SRGB8;
-               else if(conv.get()=="SRGB_ALPHA")
-                       fmt = SRGB8_ALPHA8;
-               else
-               {
-                       PixelComponents comp;
-                       conv >> comp;
-                       fmt = make_pixelformat(comp, (comp==DEPTH_COMPONENT ? FLOAT : UNSIGNED_BYTE));
-               }
-               IO::print(IO::cerr, "Warning: deprecated conversion of '%s' to PixelFormat\n", conv.get());
-       }
+               throw lexical_error(format("conversion of '%s' to PixelFormat", conv.get()));
 }
 
 PixelComponents components_from_graphics(Graphics::PixelFormat pf)