Index: code/freespace2/freespace.cpp
===================================================================
--- code/freespace2/freespace.cpp	(revision 5710)
+++ code/freespace2/freespace.cpp	(working copy)
@@ -3904,6 +3904,8 @@
 	gr_zbuffer_clear(TRUE);
 	clip_frame_view();
 
+	neb2_set_frame_backg();
+
 #ifndef DYN_CLIP_DIST
 	if (!Cmdline_nohtl) {
 		gr_set_proj_matrix(Proj_fov, gr_screen.clip_aspect, Min_draw_distance, Max_draw_distance);
Index: code/nebula/neb.cpp
===================================================================
--- code/nebula/neb.cpp	(revision 5710)
+++ code/nebula/neb.cpp	(working copy)
@@ -470,6 +470,23 @@
 	}
 }
 
+void neb2_set_frame_backg() {
+	ubyte tr = gr_screen.current_clear_color.red;  
+	ubyte tg = gr_screen.current_clear_color.green;
+	ubyte tb = gr_screen.current_clear_color.blue; 
+
+	neb2_get_fog_color(
+		&gr_screen.current_clear_color.red,
+		&gr_screen.current_clear_color.green,
+		&gr_screen.current_clear_color.blue);
+	
+	gr_clear();
+	
+	gr_screen.current_clear_color.red   = tr;
+	gr_screen.current_clear_color.green = tg;
+	gr_screen.current_clear_color.blue  = tb;
+}
+
 // call before beginning all rendering
 void neb2_render_setup(camid cid)
 {
@@ -485,21 +502,8 @@
 	if (Neb2_render_mode == NEB2_RENDER_HTL) {
 		// RT The background needs to be the same colour as the fog and this seems
 		// to be the ideal place to do it
-		ubyte tr = gr_screen.current_clear_color.red;  
-		ubyte tg = gr_screen.current_clear_color.green;
-		ubyte tb = gr_screen.current_clear_color.blue; 
+		neb2_set_frame_backg();
 
-		neb2_get_fog_color(
-			&gr_screen.current_clear_color.red,
-			&gr_screen.current_clear_color.green,
-			&gr_screen.current_clear_color.blue);
-		
-		gr_clear();
-		
-		gr_screen.current_clear_color.red   = tr;
-		gr_screen.current_clear_color.green = tg;
-		gr_screen.current_clear_color.blue  = tb;
-
 		return;	 
 	}
 
Index: code/nebula/neb.h
===================================================================
--- code/nebula/neb.h	(revision 5710)
+++ code/nebula/neb.h	(working copy)
@@ -140,5 +140,8 @@
 
 void neb2_get_fog_color(ubyte *r, ubyte *g, ubyte *b);
 
+// set frame background color
+void neb2_set_frame_backg();
 
+
 #endif
