Enable GL_OES_framebuffer_object on Android - it was broken in Android 2.1 but that...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 10 Apr 2018 05:11:30 +0000 (05:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 10 Apr 2018 05:11:30 +0000 (05:11 +0000)
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
vid_sdl.c

index 1d60682..8f38710 100644 (file)
--- 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}
index dc210ad..bad1835 100644 (file)
--- 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;