summaryrefslogtreecommitdiff
path: root/src/rend2/tr_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rend2/tr_init.c')
-rw-r--r--src/rend2/tr_init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rend2/tr_init.c b/src/rend2/tr_init.c
index 84b8b56b..1df69358 100644
--- a/src/rend2/tr_init.c
+++ b/src/rend2/tr_init.c
@@ -1411,7 +1411,8 @@ void R_Init( void ) {
R_InitImages();
- FBO_Init();
+ if (glRefConfig.framebufferObject)
+ FBO_Init();
GLSL_InitGPUShaders();
@@ -1463,7 +1464,8 @@ void RE_Shutdown( qboolean destroyWindow ) {
R_SyncRenderThread();
R_ShutdownCommandBuffers();
R_ShutDownQueries();
- FBO_Shutdown();
+ if (glRefConfig.framebufferObject)
+ FBO_Shutdown();
R_DeleteTextures();
R_ShutdownVBOs();
GLSL_ShutdownGPUShaders();