]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the fake MSP_stereo_rendering extension
authorMikko Rasa <tdb@tdb.fi>
Mon, 4 Dec 2017 11:06:17 +0000 (13:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 4 Dec 2017 11:08:01 +0000 (13:08 +0200)
I originally created it because I thought it might be useful with VR
headsets.  Now it's apparent that VR rendering is done with different
APIs and the left/right constants are useless.  The other values of the
RWbuffer enum weren't being used for anything either.

extensions/msp_stereo_rendering.glext [deleted file]
gl.msp.xml
source/framebuffer.h

diff --git a/extensions/msp_stereo_rendering.glext b/extensions/msp_stereo_rendering.glext
deleted file mode 100644 (file)
index cf278f1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-extension MSP_stereo_rendering
index 1f7ef6259970f9c5d042e4aeeea5df44097df09b..a1787cb02f124fb3dbf0a1a2752f5025bbf43d0c 100644 (file)
             </require>
         </extension>
 
-        <!-- Stereo rendering is not supported on OpenGL ES, but I'm not
-        certain enough of its uselessness to remove the constants outright. -->
-        <extension name="GL_MSP_stereo_rendering" supported="gl">
-            <require>
-                <enum name="GL_FRONT_LEFT" />
-                <enum name="GL_FRONT_RIGHT" />
-                <enum name="GL_BACK_LEFT" />
-                <enum name="GL_BACK_RIGHT" />
-                <enum name="GL_LEFT" />
-                <enum name="GL_RIGHT" />
-            </require>
-        </extension>
-
         <!-- 1D textures are not available in OpenGL ES, but could conceivably
         be added at a later date. -->
         <extension name="GL_MSP_texture1D" supported="gl">
index 5a9993dae202421f1c6434ebe5bb4bd006c5569f..1dd8c96f219f946b42568e4c34d052df5d8c6a53 100644 (file)
@@ -6,7 +6,6 @@
 #include "gl.h"
 #include "texturecube.h"
 #include <msp/gl/extensions/ext_framebuffer_object.h>
-#include <msp/gl/extensions/msp_stereo_rendering.h>
 #include <msp/gl/extensions/nv_fbo_color_attachments.h>
 
 namespace Msp {
@@ -46,20 +45,6 @@ enum BufferBits
        STENCIL_BUFFER_BIT = GL_STENCIL_BUFFER_BIT
 };
 
-enum RWBuffer
-{
-       NO_BUFFER      = GL_NONE,
-       FRONT_LEFT     = GL_FRONT_LEFT,
-       FRONT_RIGHT    = GL_FRONT_RIGHT,
-       BACK_LEFT      = GL_BACK_LEFT,
-       BACK_RIGHT     = GL_BACK_RIGHT,
-       FRONT          = GL_FRONT,
-       BACK           = GL_BACK,
-       LEFT           = GL_LEFT,
-       RIGHT          = GL_RIGHT,
-       FRONT_AND_BACK = GL_FRONT_AND_BACK
-};
-
 class framebuffer_incomplete: public std::runtime_error
 {
 public: