Drop unusued LEGACYGL_ENABLED check
[ci skip]
This commit is contained in:
parent
f956f2979e
commit
79e247d74e
10 changed files with 12 additions and 12 deletions
|
@ -29,7 +29,7 @@
|
|||
/*************************************************************************/
|
||||
#include "context_gl_haiku.h"
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
|
||||
ContextGL_Haiku::ContextGL_Haiku(HaikuDirectWindow *p_window) {
|
||||
window = p_window;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#ifndef CONTEXT_GL_HAIKU_H
|
||||
#define CONTEXT_GL_HAIKU_H
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
|
||||
#include "drivers/gl_context/context_gl.h"
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ void OS_Haiku::initialize(const VideoMode &p_desired, int p_video_driver, int p_
|
|||
window->SetFlags(flags);
|
||||
}
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
context_gl = memnew(ContextGL_Haiku(window));
|
||||
context_gl->initialize();
|
||||
context_gl->make_current();
|
||||
|
@ -161,7 +161,7 @@ void OS_Haiku::finalize() {
|
|||
|
||||
memdelete(input);
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
memdelete(context_gl);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ private:
|
|||
AudioDriverMediaKit driver_media_kit;
|
||||
#endif
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
ContextGL_Haiku *context_gl;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED) || defined(GLES2_ENABLED)
|
||||
#if defined(OPENGL_ENABLED) || defined(GLES2_ENABLED)
|
||||
|
||||
//
|
||||
// C++ Implementation: context_gl_x11
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED) || defined(GLES2_ENABLED)
|
||||
#if defined(OPENGL_ENABLED) || defined(GLES2_ENABLED)
|
||||
//
|
||||
// C++ Interface: context_gl_x11
|
||||
//
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "context_gl_x11.h"
|
||||
|
||||
#ifdef X11_ENABLED
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
#ifdef X11_ENABLED
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
|
||||
#include "drivers/gl_context/context_gl.h"
|
||||
#include "os/os.h"
|
||||
|
|
|
@ -235,7 +235,7 @@ void OS_X11::initialize(const VideoMode &p_desired, int p_video_driver, int p_au
|
|||
|
||||
// maybe contextgl wants to be in charge of creating the window
|
||||
//print_line("def videomode "+itos(current_videomode.width)+","+itos(current_videomode.height));
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
|
||||
context_gl = memnew(ContextGL_X11(x11_display, x11_window, current_videomode, true));
|
||||
context_gl->initialize();
|
||||
|
@ -533,7 +533,7 @@ void OS_X11::finalize() {
|
|||
XUnmapWindow(x11_display, x11_window);
|
||||
XDestroyWindow(x11_display, x11_window);
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
memdelete(context_gl);
|
||||
#endif
|
||||
for (int i = 0; i < CURSOR_MAX; i++) {
|
||||
|
|
|
@ -94,7 +94,7 @@ class OS_X11 : public OS_Unix {
|
|||
|
||||
int xdnd_version;
|
||||
|
||||
#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
|
||||
#if defined(OPENGL_ENABLED)
|
||||
ContextGL_X11 *context_gl;
|
||||
#endif
|
||||
//Rasterizer *rasterizer;
|
||||
|
|
Loading…
Reference in a new issue