From 17499dfe2bee8ebecbcb0f6ba3093a1ff2ea5070 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 10 Apr 2018 05:11:30 +0000 Subject: [PATCH] Enable GL_OES_framebuffer_object on Android - it was broken in Android 2.1 but that's been irrelevant for years. Remove prototype for R_Init, it doesn't exist. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12383 d7cf8633-e32d-0410-b094-e92efae38249 --- render.h | 1 - vid_sdl.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/render.h b/render.h index 1d606827..8f387103 100644 --- a/render.h +++ b/render.h @@ -126,7 +126,6 @@ extern cvar_t r_fullbright; extern cvar_t r_wateralpha; extern cvar_t r_dynamic; -void R_Init(void); void R_UpdateVariables(void); // must call after setting up most of r_refdef, but before calling R_RenderView void R_RenderView(void); // must set r_refdef and call R_UpdateVariables and CL_UpdateEntityShading first void R_RenderView_UpdateViewVectors(void); // just updates r_refdef.view.{forward,left,up,origin,right,inverse_matrix} diff --git a/vid_sdl.c b/vid_sdl.c index dc210ad4..bad18352 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -1977,7 +1977,8 @@ void GLES_Init(void) Calling them just threw an exception. Android developer relations confirmed that they forgot to implement these. (yeah...) It's apparently been fixed in 2.2, though I haven't tested." */ - vid.support.ext_framebuffer_object = false;//true; + // LadyHavoc: Android 2.1 is way old now, enabling this again, it's going to be required soon. + vid.support.ext_framebuffer_object = true; vid.support.ext_packed_depth_stencil = false; vid.support.ext_stencil_two_side = false; -- 2.39.2