Commit bf182486 authored by Christopher Tenter's avatar Christopher Tenter

check if texture buffers are available at compile time refs #2193

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@18787 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 57faed39
......@@ -56,6 +56,9 @@
// =================================================
#ifdef GL_ARB_texture_buffer_object
#define GBUFFER_INCLUDE_FILE "DeferredShading/GBufferAccess.glsl"
#define SCREENQUAD_VERTEXSHADER_FILE "DeferredShading/screenquad.glsl"
......@@ -554,3 +557,5 @@ void DeferredShading::slotMSAASelection( QAction * _action) {
Q_EXPORT_PLUGIN2( deferredshading , DeferredShading );
#endif
#endif // GL_ARB_texture_buffer_object
......@@ -54,6 +54,9 @@
#include <vector>
// requires texture buffers
#ifdef GL_ARB_texture_buffer_object
class DeferredShading : public QObject, BaseInterface, RenderInterface, ACG::IRenderer
{
Q_OBJECT
......@@ -151,3 +154,5 @@ private:
std::map<int, ViewerResources> viewerRes_;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment