diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-31 18:30:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 18:30:38 +0100 |
commit | 16dc607f8ad2055c8dec543bcd427fe74e5d6059 (patch) | |
tree | c99e99c1fd63fdb3d60b0c6d6ec632647e65619a /platform/android/os_android.cpp | |
parent | d6f972fad45d28222b1437a047241dd74f0d5b90 (diff) | |
parent | 8a10bb7d0dd0cc03353bb751af25a0eca1357c9d (diff) |
Merge pull request #54307 from Calinou/add-opengl-renderer-squash
Add OpenGL renderer (squashed)
Diffstat (limited to 'platform/android/os_android.cpp')
-rw-r--r-- | platform/android/os_android.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index 94ca51f75a..1a4c5ec00f 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -262,14 +262,14 @@ Size2i OS_Android::get_display_size() const { } void OS_Android::set_context_is_16_bits(bool p_is_16) { -#if defined(OPENGL_ENABLED) +#if defined(GLES3_ENABLED) //if (rasterizer) // rasterizer->set_force_16_bits_fbo(p_is_16); #endif } void OS_Android::set_opengl_extensions(const char *p_gl_extensions) { -#if defined(OPENGL_ENABLED) +#if defined(GLES3_ENABLED) ERR_FAIL_COND(!p_gl_extensions); gl_extensions = p_gl_extensions; #endif @@ -321,7 +321,7 @@ OS_Android::OS_Android(GodotJavaWrapper *p_godot_java, GodotIOJavaWrapper *p_god main_loop = nullptr; -#if defined(OPENGL_ENABLED) +#if defined(GLES3_ENABLED) gl_extensions = nullptr; use_gl2 = false; #endif |