summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/client.h2
-rw-r--r--src/null/null_glimp.c2
-rw-r--r--src/renderercommon/iqm.h (renamed from src/renderer/iqm.h)0
-rw-r--r--src/renderercommon/tr_public.h (renamed from src/renderer/tr_public.h)0
-rw-r--r--src/renderercommon/tr_types.h (renamed from src/renderer/tr_types.h)0
-rw-r--r--src/renderergl1/qgl.h (renamed from src/renderer/qgl.h)0
-rw-r--r--src/renderergl1/tr_animation.c (renamed from src/renderer/tr_animation.c)0
-rw-r--r--src/renderergl1/tr_backend.c (renamed from src/renderer/tr_backend.c)0
-rw-r--r--src/renderergl1/tr_bsp.c (renamed from src/renderer/tr_bsp.c)0
-rw-r--r--src/renderergl1/tr_cmds.c (renamed from src/renderer/tr_cmds.c)0
-rw-r--r--src/renderergl1/tr_curve.c (renamed from src/renderer/tr_curve.c)0
-rw-r--r--src/renderergl1/tr_flares.c (renamed from src/renderer/tr_flares.c)0
-rw-r--r--src/renderergl1/tr_font.c (renamed from src/renderer/tr_font.c)0
-rw-r--r--src/renderergl1/tr_image.c (renamed from src/renderer/tr_image.c)0
-rw-r--r--src/renderergl1/tr_image_bmp.c (renamed from src/renderer/tr_image_bmp.c)0
-rw-r--r--src/renderergl1/tr_image_jpg.c (renamed from src/renderer/tr_image_jpg.c)0
-rw-r--r--src/renderergl1/tr_image_pcx.c (renamed from src/renderer/tr_image_pcx.c)0
-rw-r--r--src/renderergl1/tr_image_png.c (renamed from src/renderer/tr_image_png.c)0
-rw-r--r--src/renderergl1/tr_image_tga.c (renamed from src/renderer/tr_image_tga.c)0
-rw-r--r--src/renderergl1/tr_init.c (renamed from src/renderer/tr_init.c)0
-rw-r--r--src/renderergl1/tr_light.c (renamed from src/renderer/tr_light.c)0
-rw-r--r--src/renderergl1/tr_local.h (renamed from src/renderer/tr_local.h)4
-rw-r--r--src/renderergl1/tr_main.c (renamed from src/renderer/tr_main.c)0
-rw-r--r--src/renderergl1/tr_marks.c (renamed from src/renderer/tr_marks.c)0
-rw-r--r--src/renderergl1/tr_mesh.c (renamed from src/renderer/tr_mesh.c)0
-rw-r--r--src/renderergl1/tr_model.c (renamed from src/renderer/tr_model.c)0
-rw-r--r--src/renderergl1/tr_model_iqm.c (renamed from src/renderer/tr_model_iqm.c)0
-rw-r--r--src/renderergl1/tr_noise.c (renamed from src/renderer/tr_noise.c)0
-rw-r--r--src/renderergl1/tr_scene.c (renamed from src/renderer/tr_scene.c)0
-rw-r--r--src/renderergl1/tr_shade.c (renamed from src/renderer/tr_shade.c)0
-rw-r--r--src/renderergl1/tr_shade_calc.c (renamed from src/renderer/tr_shade_calc.c)0
-rw-r--r--src/renderergl1/tr_shader.c (renamed from src/renderer/tr_shader.c)0
-rw-r--r--src/renderergl1/tr_shadows.c (renamed from src/rend2/tr_shadows.c)0
-rw-r--r--src/renderergl1/tr_sky.c (renamed from src/renderer/tr_sky.c)0
-rw-r--r--src/renderergl1/tr_subs.c (renamed from src/rend2/tr_subs.c)0
-rw-r--r--src/renderergl1/tr_surface.c (renamed from src/renderer/tr_surface.c)0
-rw-r--r--src/renderergl1/tr_world.c (renamed from src/renderer/tr_world.c)0
-rw-r--r--src/renderergl2/glsl/bokeh_fp.glsl (renamed from src/rend2/glsl/bokeh_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/bokeh_vp.glsl (renamed from src/rend2/glsl/bokeh_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/calclevels4x_fp.glsl (renamed from src/rend2/glsl/calclevels4x_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/calclevels4x_vp.glsl (renamed from src/rend2/glsl/calclevels4x_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/depthblur_fp.glsl (renamed from src/rend2/glsl/depthblur_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/depthblur_vp.glsl (renamed from src/rend2/glsl/depthblur_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/dlight_fp.glsl (renamed from src/rend2/glsl/dlight_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/dlight_vp.glsl (renamed from src/rend2/glsl/dlight_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/down4x_fp.glsl (renamed from src/rend2/glsl/down4x_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/down4x_vp.glsl (renamed from src/rend2/glsl/down4x_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/fogpass_fp.glsl (renamed from src/rend2/glsl/fogpass_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/fogpass_vp.glsl (renamed from src/rend2/glsl/fogpass_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/generic_fp.glsl (renamed from src/rend2/glsl/generic_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/generic_vp.glsl (renamed from src/rend2/glsl/generic_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/lightall_fp.glsl (renamed from src/rend2/glsl/lightall_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/lightall_vp.glsl (renamed from src/rend2/glsl/lightall_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/pshadow_fp.glsl (renamed from src/rend2/glsl/pshadow_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/pshadow_vp.glsl (renamed from src/rend2/glsl/pshadow_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/shadowfill_fp.glsl (renamed from src/rend2/glsl/shadowfill_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/shadowfill_vp.glsl (renamed from src/rend2/glsl/shadowfill_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/shadowmask_fp.glsl (renamed from src/rend2/glsl/shadowmask_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/shadowmask_vp.glsl (renamed from src/rend2/glsl/shadowmask_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/ssao_fp.glsl (renamed from src/rend2/glsl/ssao_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/ssao_vp.glsl (renamed from src/rend2/glsl/ssao_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/texturecolor_fp.glsl (renamed from src/rend2/glsl/texturecolor_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/texturecolor_vp.glsl (renamed from src/rend2/glsl/texturecolor_vp.glsl)0
-rw-r--r--src/renderergl2/glsl/tonemap_fp.glsl (renamed from src/rend2/glsl/tonemap_fp.glsl)0
-rw-r--r--src/renderergl2/glsl/tonemap_vp.glsl (renamed from src/rend2/glsl/tonemap_vp.glsl)0
-rw-r--r--src/renderergl2/qgl.h (renamed from src/rend2/qgl.h)0
-rw-r--r--src/renderergl2/tr_animation.c (renamed from src/rend2/tr_animation.c)0
-rw-r--r--src/renderergl2/tr_backend.c (renamed from src/rend2/tr_backend.c)0
-rw-r--r--src/renderergl2/tr_bsp.c (renamed from src/rend2/tr_bsp.c)0
-rw-r--r--src/renderergl2/tr_cmds.c (renamed from src/rend2/tr_cmds.c)0
-rw-r--r--src/renderergl2/tr_curve.c (renamed from src/rend2/tr_curve.c)0
-rw-r--r--src/renderergl2/tr_extensions.c (renamed from src/rend2/tr_extensions.c)0
-rw-r--r--src/renderergl2/tr_extramath.c (renamed from src/rend2/tr_extramath.c)0
-rw-r--r--src/renderergl2/tr_extramath.h (renamed from src/rend2/tr_extramath.h)0
-rw-r--r--src/renderergl2/tr_extratypes.h (renamed from src/rend2/tr_extratypes.h)0
-rw-r--r--src/renderergl2/tr_fbo.c (renamed from src/rend2/tr_fbo.c)0
-rw-r--r--src/renderergl2/tr_fbo.h (renamed from src/rend2/tr_fbo.h)0
-rw-r--r--src/renderergl2/tr_flares.c (renamed from src/rend2/tr_flares.c)0
-rw-r--r--src/renderergl2/tr_font.c (renamed from src/rend2/tr_font.c)0
-rw-r--r--src/renderergl2/tr_glsl.c (renamed from src/rend2/tr_glsl.c)0
-rw-r--r--src/renderergl2/tr_image.c (renamed from src/rend2/tr_image.c)0
-rw-r--r--src/renderergl2/tr_image_bmp.c (renamed from src/rend2/tr_image_bmp.c)2
-rw-r--r--src/renderergl2/tr_image_jpg.c (renamed from src/rend2/tr_image_jpg.c)2
-rw-r--r--src/renderergl2/tr_image_pcx.c (renamed from src/rend2/tr_image_pcx.c)2
-rw-r--r--src/renderergl2/tr_image_png.c (renamed from src/rend2/tr_image_png.c)2
-rw-r--r--src/renderergl2/tr_image_tga.c (renamed from src/rend2/tr_image_tga.c)2
-rw-r--r--src/renderergl2/tr_init.c (renamed from src/rend2/tr_init.c)0
-rw-r--r--src/renderergl2/tr_light.c (renamed from src/rend2/tr_light.c)0
-rw-r--r--src/renderergl2/tr_local.h (renamed from src/rend2/tr_local.h)4
-rw-r--r--src/renderergl2/tr_main.c (renamed from src/rend2/tr_main.c)0
-rw-r--r--src/renderergl2/tr_marks.c (renamed from src/rend2/tr_marks.c)0
-rw-r--r--src/renderergl2/tr_mesh.c (renamed from src/rend2/tr_mesh.c)0
-rw-r--r--src/renderergl2/tr_model.c (renamed from src/rend2/tr_model.c)0
-rw-r--r--src/renderergl2/tr_model_iqm.c (renamed from src/rend2/tr_model_iqm.c)0
-rw-r--r--src/renderergl2/tr_noise.c (renamed from src/rend2/tr_noise.c)0
-rw-r--r--src/renderergl2/tr_postprocess.c (renamed from src/rend2/tr_postprocess.c)0
-rw-r--r--src/renderergl2/tr_postprocess.h (renamed from src/rend2/tr_postprocess.h)0
-rw-r--r--src/renderergl2/tr_scene.c (renamed from src/rend2/tr_scene.c)0
-rw-r--r--src/renderergl2/tr_shade.c (renamed from src/rend2/tr_shade.c)0
-rw-r--r--src/renderergl2/tr_shade_calc.c (renamed from src/rend2/tr_shade_calc.c)0
-rw-r--r--src/renderergl2/tr_shader.c (renamed from src/rend2/tr_shader.c)0
-rw-r--r--src/renderergl2/tr_shadows.c (renamed from src/renderer/tr_shadows.c)0
-rw-r--r--src/renderergl2/tr_sky.c (renamed from src/rend2/tr_sky.c)0
-rw-r--r--src/renderergl2/tr_subs.c (renamed from src/renderer/tr_subs.c)0
-rw-r--r--src/renderergl2/tr_surface.c (renamed from src/rend2/tr_surface.c)0
-rw-r--r--src/renderergl2/tr_vbo.c (renamed from src/rend2/tr_vbo.c)0
-rw-r--r--src/renderergl2/tr_world.c (renamed from src/rend2/tr_world.c)0
-rw-r--r--src/sdl/sdl_gamma.c2
-rw-r--r--src/sdl/sdl_glimp.c3
109 files changed, 14 insertions, 13 deletions
diff --git a/src/client/client.h b/src/client/client.h
index f3d52a24..de029364 100644
--- a/src/client/client.h
+++ b/src/client/client.h
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
#include "../ui/ui_public.h"
#include "keys.h"
#include "snd_public.h"
diff --git a/src/null/null_glimp.c b/src/null/null_glimp.c
index aae34eb0..f33508d9 100644
--- a/src/null/null_glimp.c
+++ b/src/null/null_glimp.c
@@ -20,7 +20,7 @@ along with Tremulous; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
-#include "../renderer/tr_local.h"
+#include "../renderergl1/tr_local.h"
qboolean ( * qwglSwapIntervalEXT)( int interval );
diff --git a/src/renderer/iqm.h b/src/renderercommon/iqm.h
index ab2247ac..ab2247ac 100644
--- a/src/renderer/iqm.h
+++ b/src/renderercommon/iqm.h
diff --git a/src/renderer/tr_public.h b/src/renderercommon/tr_public.h
index f9ededdf..f9ededdf 100644
--- a/src/renderer/tr_public.h
+++ b/src/renderercommon/tr_public.h
diff --git a/src/renderer/tr_types.h b/src/renderercommon/tr_types.h
index 0e15c9e8..0e15c9e8 100644
--- a/src/renderer/tr_types.h
+++ b/src/renderercommon/tr_types.h
diff --git a/src/renderer/qgl.h b/src/renderergl1/qgl.h
index 2dbe27db..2dbe27db 100644
--- a/src/renderer/qgl.h
+++ b/src/renderergl1/qgl.h
diff --git a/src/renderer/tr_animation.c b/src/renderergl1/tr_animation.c
index a9bcd507..a9bcd507 100644
--- a/src/renderer/tr_animation.c
+++ b/src/renderergl1/tr_animation.c
diff --git a/src/renderer/tr_backend.c b/src/renderergl1/tr_backend.c
index 61495083..61495083 100644
--- a/src/renderer/tr_backend.c
+++ b/src/renderergl1/tr_backend.c
diff --git a/src/renderer/tr_bsp.c b/src/renderergl1/tr_bsp.c
index 74596a53..74596a53 100644
--- a/src/renderer/tr_bsp.c
+++ b/src/renderergl1/tr_bsp.c
diff --git a/src/renderer/tr_cmds.c b/src/renderergl1/tr_cmds.c
index e4a2dcfe..e4a2dcfe 100644
--- a/src/renderer/tr_cmds.c
+++ b/src/renderergl1/tr_cmds.c
diff --git a/src/renderer/tr_curve.c b/src/renderergl1/tr_curve.c
index 684329b1..684329b1 100644
--- a/src/renderer/tr_curve.c
+++ b/src/renderergl1/tr_curve.c
diff --git a/src/renderer/tr_flares.c b/src/renderergl1/tr_flares.c
index 9397fbac..9397fbac 100644
--- a/src/renderer/tr_flares.c
+++ b/src/renderergl1/tr_flares.c
diff --git a/src/renderer/tr_font.c b/src/renderergl1/tr_font.c
index 432d1215..432d1215 100644
--- a/src/renderer/tr_font.c
+++ b/src/renderergl1/tr_font.c
diff --git a/src/renderer/tr_image.c b/src/renderergl1/tr_image.c
index 3338a25b..3338a25b 100644
--- a/src/renderer/tr_image.c
+++ b/src/renderergl1/tr_image.c
diff --git a/src/renderer/tr_image_bmp.c b/src/renderergl1/tr_image_bmp.c
index eed62c58..eed62c58 100644
--- a/src/renderer/tr_image_bmp.c
+++ b/src/renderergl1/tr_image_bmp.c
diff --git a/src/renderer/tr_image_jpg.c b/src/renderergl1/tr_image_jpg.c
index 7d4a793a..7d4a793a 100644
--- a/src/renderer/tr_image_jpg.c
+++ b/src/renderergl1/tr_image_jpg.c
diff --git a/src/renderer/tr_image_pcx.c b/src/renderergl1/tr_image_pcx.c
index 8837d5b7..8837d5b7 100644
--- a/src/renderer/tr_image_pcx.c
+++ b/src/renderergl1/tr_image_pcx.c
diff --git a/src/renderer/tr_image_png.c b/src/renderergl1/tr_image_png.c
index b30c7fea..b30c7fea 100644
--- a/src/renderer/tr_image_png.c
+++ b/src/renderergl1/tr_image_png.c
diff --git a/src/renderer/tr_image_tga.c b/src/renderergl1/tr_image_tga.c
index b707c0ed..b707c0ed 100644
--- a/src/renderer/tr_image_tga.c
+++ b/src/renderergl1/tr_image_tga.c
diff --git a/src/renderer/tr_init.c b/src/renderergl1/tr_init.c
index 14b91927..14b91927 100644
--- a/src/renderer/tr_init.c
+++ b/src/renderergl1/tr_init.c
diff --git a/src/renderer/tr_light.c b/src/renderergl1/tr_light.c
index 36c1c480..36c1c480 100644
--- a/src/renderer/tr_light.c
+++ b/src/renderergl1/tr_light.c
diff --git a/src/renderer/tr_local.h b/src/renderergl1/tr_local.h
index fc80645b..3e6766f8 100644
--- a/src/renderer/tr_local.h
+++ b/src/renderergl1/tr_local.h
@@ -28,9 +28,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "tr_public.h"
+#include "../renderercommon/tr_public.h"
#include "qgl.h"
-#include "iqm.h"
+#include "../renderercommon/iqm.h"
#define GL_INDEX_TYPE GL_UNSIGNED_INT
typedef unsigned int glIndex_t;
diff --git a/src/renderer/tr_main.c b/src/renderergl1/tr_main.c
index 3b82a777..3b82a777 100644
--- a/src/renderer/tr_main.c
+++ b/src/renderergl1/tr_main.c
diff --git a/src/renderer/tr_marks.c b/src/renderergl1/tr_marks.c
index 6bcd7cb1..6bcd7cb1 100644
--- a/src/renderer/tr_marks.c
+++ b/src/renderergl1/tr_marks.c
diff --git a/src/renderer/tr_mesh.c b/src/renderergl1/tr_mesh.c
index effbae01..effbae01 100644
--- a/src/renderer/tr_mesh.c
+++ b/src/renderergl1/tr_mesh.c
diff --git a/src/renderer/tr_model.c b/src/renderergl1/tr_model.c
index b51c3ce1..b51c3ce1 100644
--- a/src/renderer/tr_model.c
+++ b/src/renderergl1/tr_model.c
diff --git a/src/renderer/tr_model_iqm.c b/src/renderergl1/tr_model_iqm.c
index 98517d55..98517d55 100644
--- a/src/renderer/tr_model_iqm.c
+++ b/src/renderergl1/tr_model_iqm.c
diff --git a/src/renderer/tr_noise.c b/src/renderergl1/tr_noise.c
index b4c4082d..b4c4082d 100644
--- a/src/renderer/tr_noise.c
+++ b/src/renderergl1/tr_noise.c
diff --git a/src/renderer/tr_scene.c b/src/renderergl1/tr_scene.c
index 6ee77dc6..6ee77dc6 100644
--- a/src/renderer/tr_scene.c
+++ b/src/renderergl1/tr_scene.c
diff --git a/src/renderer/tr_shade.c b/src/renderergl1/tr_shade.c
index b8e8d268..b8e8d268 100644
--- a/src/renderer/tr_shade.c
+++ b/src/renderergl1/tr_shade.c
diff --git a/src/renderer/tr_shade_calc.c b/src/renderergl1/tr_shade_calc.c
index 58ec6f45..58ec6f45 100644
--- a/src/renderer/tr_shade_calc.c
+++ b/src/renderergl1/tr_shade_calc.c
diff --git a/src/renderer/tr_shader.c b/src/renderergl1/tr_shader.c
index 8440dd63..8440dd63 100644
--- a/src/renderer/tr_shader.c
+++ b/src/renderergl1/tr_shader.c
diff --git a/src/rend2/tr_shadows.c b/src/renderergl1/tr_shadows.c
index f412b00d..f412b00d 100644
--- a/src/rend2/tr_shadows.c
+++ b/src/renderergl1/tr_shadows.c
diff --git a/src/renderer/tr_sky.c b/src/renderergl1/tr_sky.c
index 3b90fdeb..3b90fdeb 100644
--- a/src/renderer/tr_sky.c
+++ b/src/renderergl1/tr_sky.c
diff --git a/src/rend2/tr_subs.c b/src/renderergl1/tr_subs.c
index 6f490128..6f490128 100644
--- a/src/rend2/tr_subs.c
+++ b/src/renderergl1/tr_subs.c
diff --git a/src/renderer/tr_surface.c b/src/renderergl1/tr_surface.c
index 7a836386..7a836386 100644
--- a/src/renderer/tr_surface.c
+++ b/src/renderergl1/tr_surface.c
diff --git a/src/renderer/tr_world.c b/src/renderergl1/tr_world.c
index de9715a8..de9715a8 100644
--- a/src/renderer/tr_world.c
+++ b/src/renderergl1/tr_world.c
diff --git a/src/rend2/glsl/bokeh_fp.glsl b/src/renderergl2/glsl/bokeh_fp.glsl
index d08816ae..d08816ae 100644
--- a/src/rend2/glsl/bokeh_fp.glsl
+++ b/src/renderergl2/glsl/bokeh_fp.glsl
diff --git a/src/rend2/glsl/bokeh_vp.glsl b/src/renderergl2/glsl/bokeh_vp.glsl
index 5ca41600..5ca41600 100644
--- a/src/rend2/glsl/bokeh_vp.glsl
+++ b/src/renderergl2/glsl/bokeh_vp.glsl
diff --git a/src/rend2/glsl/calclevels4x_fp.glsl b/src/renderergl2/glsl/calclevels4x_fp.glsl
index c8cf06c7..c8cf06c7 100644
--- a/src/rend2/glsl/calclevels4x_fp.glsl
+++ b/src/renderergl2/glsl/calclevels4x_fp.glsl
diff --git a/src/rend2/glsl/calclevels4x_vp.glsl b/src/renderergl2/glsl/calclevels4x_vp.glsl
index 5ca41600..5ca41600 100644
--- a/src/rend2/glsl/calclevels4x_vp.glsl
+++ b/src/renderergl2/glsl/calclevels4x_vp.glsl
diff --git a/src/rend2/glsl/depthblur_fp.glsl b/src/renderergl2/glsl/depthblur_fp.glsl
index 93895b4e..93895b4e 100644
--- a/src/rend2/glsl/depthblur_fp.glsl
+++ b/src/renderergl2/glsl/depthblur_fp.glsl
diff --git a/src/rend2/glsl/depthblur_vp.glsl b/src/renderergl2/glsl/depthblur_vp.glsl
index 9c46a79f..9c46a79f 100644
--- a/src/rend2/glsl/depthblur_vp.glsl
+++ b/src/renderergl2/glsl/depthblur_vp.glsl
diff --git a/src/rend2/glsl/dlight_fp.glsl b/src/renderergl2/glsl/dlight_fp.glsl
index 8ffca5b9..8ffca5b9 100644
--- a/src/rend2/glsl/dlight_fp.glsl
+++ b/src/renderergl2/glsl/dlight_fp.glsl
diff --git a/src/rend2/glsl/dlight_vp.glsl b/src/renderergl2/glsl/dlight_vp.glsl
index d9fd71d0..d9fd71d0 100644
--- a/src/rend2/glsl/dlight_vp.glsl
+++ b/src/renderergl2/glsl/dlight_vp.glsl
diff --git a/src/rend2/glsl/down4x_fp.glsl b/src/renderergl2/glsl/down4x_fp.glsl
index 0f88fb2e..0f88fb2e 100644
--- a/src/rend2/glsl/down4x_fp.glsl
+++ b/src/renderergl2/glsl/down4x_fp.glsl
diff --git a/src/rend2/glsl/down4x_vp.glsl b/src/renderergl2/glsl/down4x_vp.glsl
index 5ca41600..5ca41600 100644
--- a/src/rend2/glsl/down4x_vp.glsl
+++ b/src/renderergl2/glsl/down4x_vp.glsl
diff --git a/src/rend2/glsl/fogpass_fp.glsl b/src/renderergl2/glsl/fogpass_fp.glsl
index 91884304..91884304 100644
--- a/src/rend2/glsl/fogpass_fp.glsl
+++ b/src/renderergl2/glsl/fogpass_fp.glsl
diff --git a/src/rend2/glsl/fogpass_vp.glsl b/src/renderergl2/glsl/fogpass_vp.glsl
index f18bc707..f18bc707 100644
--- a/src/rend2/glsl/fogpass_vp.glsl
+++ b/src/renderergl2/glsl/fogpass_vp.glsl
diff --git a/src/rend2/glsl/generic_fp.glsl b/src/renderergl2/glsl/generic_fp.glsl
index dea52e06..dea52e06 100644
--- a/src/rend2/glsl/generic_fp.glsl
+++ b/src/renderergl2/glsl/generic_fp.glsl
diff --git a/src/rend2/glsl/generic_vp.glsl b/src/renderergl2/glsl/generic_vp.glsl
index 67360b1b..67360b1b 100644
--- a/src/rend2/glsl/generic_vp.glsl
+++ b/src/renderergl2/glsl/generic_vp.glsl
diff --git a/src/rend2/glsl/lightall_fp.glsl b/src/renderergl2/glsl/lightall_fp.glsl
index ec9bb2dc..ec9bb2dc 100644
--- a/src/rend2/glsl/lightall_fp.glsl
+++ b/src/renderergl2/glsl/lightall_fp.glsl
diff --git a/src/rend2/glsl/lightall_vp.glsl b/src/renderergl2/glsl/lightall_vp.glsl
index 05a41f4d..05a41f4d 100644
--- a/src/rend2/glsl/lightall_vp.glsl
+++ b/src/renderergl2/glsl/lightall_vp.glsl
diff --git a/src/rend2/glsl/pshadow_fp.glsl b/src/renderergl2/glsl/pshadow_fp.glsl
index b152971a..b152971a 100644
--- a/src/rend2/glsl/pshadow_fp.glsl
+++ b/src/renderergl2/glsl/pshadow_fp.glsl
diff --git a/src/rend2/glsl/pshadow_vp.glsl b/src/renderergl2/glsl/pshadow_vp.glsl
index 0e0e3b3d..0e0e3b3d 100644
--- a/src/rend2/glsl/pshadow_vp.glsl
+++ b/src/renderergl2/glsl/pshadow_vp.glsl
diff --git a/src/rend2/glsl/shadowfill_fp.glsl b/src/renderergl2/glsl/shadowfill_fp.glsl
index 150f3d12..150f3d12 100644
--- a/src/rend2/glsl/shadowfill_fp.glsl
+++ b/src/renderergl2/glsl/shadowfill_fp.glsl
diff --git a/src/rend2/glsl/shadowfill_vp.glsl b/src/renderergl2/glsl/shadowfill_vp.glsl
index 10802eca..10802eca 100644
--- a/src/rend2/glsl/shadowfill_vp.glsl
+++ b/src/renderergl2/glsl/shadowfill_vp.glsl
diff --git a/src/rend2/glsl/shadowmask_fp.glsl b/src/renderergl2/glsl/shadowmask_fp.glsl
index b3a698c8..b3a698c8 100644
--- a/src/rend2/glsl/shadowmask_fp.glsl
+++ b/src/renderergl2/glsl/shadowmask_fp.glsl
diff --git a/src/rend2/glsl/shadowmask_vp.glsl b/src/renderergl2/glsl/shadowmask_vp.glsl
index 13166a24..13166a24 100644
--- a/src/rend2/glsl/shadowmask_vp.glsl
+++ b/src/renderergl2/glsl/shadowmask_vp.glsl
diff --git a/src/rend2/glsl/ssao_fp.glsl b/src/renderergl2/glsl/ssao_fp.glsl
index 6263284c..6263284c 100644
--- a/src/rend2/glsl/ssao_fp.glsl
+++ b/src/renderergl2/glsl/ssao_fp.glsl
diff --git a/src/rend2/glsl/ssao_vp.glsl b/src/renderergl2/glsl/ssao_vp.glsl
index 9c46a79f..9c46a79f 100644
--- a/src/rend2/glsl/ssao_vp.glsl
+++ b/src/renderergl2/glsl/ssao_vp.glsl
diff --git a/src/rend2/glsl/texturecolor_fp.glsl b/src/renderergl2/glsl/texturecolor_fp.glsl
index 5646b511..5646b511 100644
--- a/src/rend2/glsl/texturecolor_fp.glsl
+++ b/src/renderergl2/glsl/texturecolor_fp.glsl
diff --git a/src/rend2/glsl/texturecolor_vp.glsl b/src/renderergl2/glsl/texturecolor_vp.glsl
index ae26a18e..ae26a18e 100644
--- a/src/rend2/glsl/texturecolor_vp.glsl
+++ b/src/renderergl2/glsl/texturecolor_vp.glsl
diff --git a/src/rend2/glsl/tonemap_fp.glsl b/src/renderergl2/glsl/tonemap_fp.glsl
index 9b18de8a..9b18de8a 100644
--- a/src/rend2/glsl/tonemap_fp.glsl
+++ b/src/renderergl2/glsl/tonemap_fp.glsl
diff --git a/src/rend2/glsl/tonemap_vp.glsl b/src/renderergl2/glsl/tonemap_vp.glsl
index 5ca41600..5ca41600 100644
--- a/src/rend2/glsl/tonemap_vp.glsl
+++ b/src/renderergl2/glsl/tonemap_vp.glsl
diff --git a/src/rend2/qgl.h b/src/renderergl2/qgl.h
index 6013a87c..6013a87c 100644
--- a/src/rend2/qgl.h
+++ b/src/renderergl2/qgl.h
diff --git a/src/rend2/tr_animation.c b/src/renderergl2/tr_animation.c
index 794111c6..794111c6 100644
--- a/src/rend2/tr_animation.c
+++ b/src/renderergl2/tr_animation.c
diff --git a/src/rend2/tr_backend.c b/src/renderergl2/tr_backend.c
index fd61ee76..fd61ee76 100644
--- a/src/rend2/tr_backend.c
+++ b/src/renderergl2/tr_backend.c
diff --git a/src/rend2/tr_bsp.c b/src/renderergl2/tr_bsp.c
index c14245b8..c14245b8 100644
--- a/src/rend2/tr_bsp.c
+++ b/src/renderergl2/tr_bsp.c
diff --git a/src/rend2/tr_cmds.c b/src/renderergl2/tr_cmds.c
index 622b401a..622b401a 100644
--- a/src/rend2/tr_cmds.c
+++ b/src/renderergl2/tr_cmds.c
diff --git a/src/rend2/tr_curve.c b/src/renderergl2/tr_curve.c
index 3d439257..3d439257 100644
--- a/src/rend2/tr_curve.c
+++ b/src/renderergl2/tr_curve.c
diff --git a/src/rend2/tr_extensions.c b/src/renderergl2/tr_extensions.c
index 0b70d48b..0b70d48b 100644
--- a/src/rend2/tr_extensions.c
+++ b/src/renderergl2/tr_extensions.c
diff --git a/src/rend2/tr_extramath.c b/src/renderergl2/tr_extramath.c
index e989c7e9..e989c7e9 100644
--- a/src/rend2/tr_extramath.c
+++ b/src/renderergl2/tr_extramath.c
diff --git a/src/rend2/tr_extramath.h b/src/renderergl2/tr_extramath.h
index b4ca6f3c..b4ca6f3c 100644
--- a/src/rend2/tr_extramath.h
+++ b/src/renderergl2/tr_extramath.h
diff --git a/src/rend2/tr_extratypes.h b/src/renderergl2/tr_extratypes.h
index b84cd5e4..b84cd5e4 100644
--- a/src/rend2/tr_extratypes.h
+++ b/src/renderergl2/tr_extratypes.h
diff --git a/src/rend2/tr_fbo.c b/src/renderergl2/tr_fbo.c
index 0ad08b20..0ad08b20 100644
--- a/src/rend2/tr_fbo.c
+++ b/src/renderergl2/tr_fbo.c
diff --git a/src/rend2/tr_fbo.h b/src/renderergl2/tr_fbo.h
index f0366251..f0366251 100644
--- a/src/rend2/tr_fbo.h
+++ b/src/renderergl2/tr_fbo.h
diff --git a/src/rend2/tr_flares.c b/src/renderergl2/tr_flares.c
index 8e6c321f..8e6c321f 100644
--- a/src/rend2/tr_flares.c
+++ b/src/renderergl2/tr_flares.c
diff --git a/src/rend2/tr_font.c b/src/renderergl2/tr_font.c
index 21226709..21226709 100644
--- a/src/rend2/tr_font.c
+++ b/src/renderergl2/tr_font.c
diff --git a/src/rend2/tr_glsl.c b/src/renderergl2/tr_glsl.c
index ccfea909..ccfea909 100644
--- a/src/rend2/tr_glsl.c
+++ b/src/renderergl2/tr_glsl.c
diff --git a/src/rend2/tr_image.c b/src/renderergl2/tr_image.c
index 8a1f574f..8a1f574f 100644
--- a/src/rend2/tr_image.c
+++ b/src/renderergl2/tr_image.c
diff --git a/src/rend2/tr_image_bmp.c b/src/renderergl2/tr_image_bmp.c
index 707bee3b..87ea9e4a 100644
--- a/src/rend2/tr_image_bmp.c
+++ b/src/renderergl2/tr_image_bmp.c
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
extern refimport_t ri;
typedef struct
diff --git a/src/rend2/tr_image_jpg.c b/src/renderergl2/tr_image_jpg.c
index 494b4a28..fb769263 100644
--- a/src/rend2/tr_image_jpg.c
+++ b/src/renderergl2/tr_image_jpg.c
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
extern refimport_t ri;
/*
diff --git a/src/rend2/tr_image_pcx.c b/src/renderergl2/tr_image_pcx.c
index d4dd575d..5e1de51b 100644
--- a/src/rend2/tr_image_pcx.c
+++ b/src/renderergl2/tr_image_pcx.c
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
extern refimport_t ri;
/*
diff --git a/src/rend2/tr_image_png.c b/src/renderergl2/tr_image_png.c
index ee37aa75..a0729c39 100644
--- a/src/rend2/tr_image_png.c
+++ b/src/renderergl2/tr_image_png.c
@@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
extern refimport_t ri;
#include "../qcommon/puff.h"
diff --git a/src/rend2/tr_image_tga.c b/src/renderergl2/tr_image_tga.c
index 27ca0d7b..363c0b3f 100644
--- a/src/rend2/tr_image_tga.c
+++ b/src/renderergl2/tr_image_tga.c
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
extern refimport_t ri;
/*
diff --git a/src/rend2/tr_init.c b/src/renderergl2/tr_init.c
index 7228d01b..7228d01b 100644
--- a/src/rend2/tr_init.c
+++ b/src/renderergl2/tr_init.c
diff --git a/src/rend2/tr_light.c b/src/renderergl2/tr_light.c
index 4e90ce20..4e90ce20 100644
--- a/src/rend2/tr_light.c
+++ b/src/renderergl2/tr_light.c
diff --git a/src/rend2/tr_local.h b/src/renderergl2/tr_local.h
index a5d57d35..dd0b62d1 100644
--- a/src/rend2/tr_local.h
+++ b/src/renderergl2/tr_local.h
@@ -27,13 +27,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/qcommon.h"
-#include "../renderer/tr_public.h"
+#include "../renderercommon/tr_public.h"
#include "tr_extratypes.h"
#include "tr_extramath.h"
#include "tr_fbo.h"
#include "tr_postprocess.h"
#include "qgl.h"
-#include "../renderer/iqm.h"
+#include "../renderercommon/iqm.h"
#define GL_INDEX_TYPE GL_UNSIGNED_INT
typedef unsigned int glIndex_t;
diff --git a/src/rend2/tr_main.c b/src/renderergl2/tr_main.c
index 0935dce7..0935dce7 100644
--- a/src/rend2/tr_main.c
+++ b/src/renderergl2/tr_main.c
diff --git a/src/rend2/tr_marks.c b/src/renderergl2/tr_marks.c
index f24459e2..f24459e2 100644
--- a/src/rend2/tr_marks.c
+++ b/src/renderergl2/tr_marks.c
diff --git a/src/rend2/tr_mesh.c b/src/renderergl2/tr_mesh.c
index 342854bf..342854bf 100644
--- a/src/rend2/tr_mesh.c
+++ b/src/renderergl2/tr_mesh.c
diff --git a/src/rend2/tr_model.c b/src/renderergl2/tr_model.c
index 5aeab8ef..5aeab8ef 100644
--- a/src/rend2/tr_model.c
+++ b/src/renderergl2/tr_model.c
diff --git a/src/rend2/tr_model_iqm.c b/src/renderergl2/tr_model_iqm.c
index 1f1bf747..1f1bf747 100644
--- a/src/rend2/tr_model_iqm.c
+++ b/src/renderergl2/tr_model_iqm.c
diff --git a/src/rend2/tr_noise.c b/src/renderergl2/tr_noise.c
index 40eafc33..40eafc33 100644
--- a/src/rend2/tr_noise.c
+++ b/src/renderergl2/tr_noise.c
diff --git a/src/rend2/tr_postprocess.c b/src/renderergl2/tr_postprocess.c
index a15c9b7a..a15c9b7a 100644
--- a/src/rend2/tr_postprocess.c
+++ b/src/renderergl2/tr_postprocess.c
diff --git a/src/rend2/tr_postprocess.h b/src/renderergl2/tr_postprocess.h
index 1e5ebefe..1e5ebefe 100644
--- a/src/rend2/tr_postprocess.h
+++ b/src/renderergl2/tr_postprocess.h
diff --git a/src/rend2/tr_scene.c b/src/renderergl2/tr_scene.c
index 14c18339..14c18339 100644
--- a/src/rend2/tr_scene.c
+++ b/src/renderergl2/tr_scene.c
diff --git a/src/rend2/tr_shade.c b/src/renderergl2/tr_shade.c
index b4758a86..b4758a86 100644
--- a/src/rend2/tr_shade.c
+++ b/src/renderergl2/tr_shade.c
diff --git a/src/rend2/tr_shade_calc.c b/src/renderergl2/tr_shade_calc.c
index 9421f646..9421f646 100644
--- a/src/rend2/tr_shade_calc.c
+++ b/src/renderergl2/tr_shade_calc.c
diff --git a/src/rend2/tr_shader.c b/src/renderergl2/tr_shader.c
index 8cad4b6b..8cad4b6b 100644
--- a/src/rend2/tr_shader.c
+++ b/src/renderergl2/tr_shader.c
diff --git a/src/renderer/tr_shadows.c b/src/renderergl2/tr_shadows.c
index 04777799..04777799 100644
--- a/src/renderer/tr_shadows.c
+++ b/src/renderergl2/tr_shadows.c
diff --git a/src/rend2/tr_sky.c b/src/renderergl2/tr_sky.c
index f3c24a45..f3c24a45 100644
--- a/src/rend2/tr_sky.c
+++ b/src/renderergl2/tr_sky.c
diff --git a/src/renderer/tr_subs.c b/src/renderergl2/tr_subs.c
index 6f490128..6f490128 100644
--- a/src/renderer/tr_subs.c
+++ b/src/renderergl2/tr_subs.c
diff --git a/src/rend2/tr_surface.c b/src/renderergl2/tr_surface.c
index ad7f5a5f..ad7f5a5f 100644
--- a/src/rend2/tr_surface.c
+++ b/src/renderergl2/tr_surface.c
diff --git a/src/rend2/tr_vbo.c b/src/renderergl2/tr_vbo.c
index 483df2e3..483df2e3 100644
--- a/src/rend2/tr_vbo.c
+++ b/src/renderergl2/tr_vbo.c
diff --git a/src/rend2/tr_world.c b/src/renderergl2/tr_world.c
index 950ee6a4..950ee6a4 100644
--- a/src/rend2/tr_world.c
+++ b/src/renderergl2/tr_world.c
diff --git a/src/sdl/sdl_gamma.c b/src/sdl/sdl_gamma.c
index 53dc4026..c341746a 100644
--- a/src/sdl/sdl_gamma.c
+++ b/src/sdl/sdl_gamma.c
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# include <SDL.h>
#endif
-#include "../renderer/tr_local.h"
+#include "../renderergl1/tr_local.h"
#include "../qcommon/qcommon.h"
/*
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c
index f9c2ce87..4cc0afa6 100644
--- a/src/sdl/sdl_glimp.c
+++ b/src/sdl/sdl_glimp.c
@@ -32,7 +32,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <stdlib.h>
#include <math.h>
-#include "../renderer/tr_local.h"
+//FIXME: factor out the bits that are actually needed here into a renderercommon header
+#include "../renderergl1/tr_local.h"
#include "../sys/sys_local.h"
#include "sdl_icon.h"