Index: code/freespace2/freespace.cpp
===================================================================
--- code/freespace2/freespace.cpp	(revision 5725)
+++ code/freespace2/freespace.cpp	(working copy)
@@ -2824,11 +2824,10 @@
 			gr_set_color(0,0,0);
 			gr_rect(0, 0, gr_screen.max_w, yborder, false);
 			gr_rect(0, gr_screen.max_h-yborder, gr_screen.max_w, yborder, false);
-		} else {
-			//	Numeric constants encouraged by J "pig farmer" S, who shall remain semi-anonymous.
-			// J.S. I've changed my ways!! See the new "no constants" code!!!
-			gr_set_clip(0, yborder, gr_screen.max_w, gr_screen.max_h - yborder*2, false );	
-		}
+		} 
+		//	Numeric constants encouraged by J "pig farmer" S, who shall remain semi-anonymous.
+		// J.S. I've changed my ways!! See the new "no constants" code!!!
+		gr_set_clip(0, yborder, gr_screen.max_w, gr_screen.max_h - yborder*2, false );	
 	}
 	else {
 		// Set the clip region for normal view
@@ -3863,6 +3862,26 @@
 
 	g3_start_frame(game_zbuffer);
 
+	// this needs to happen after g3_start_frame() and before the primary projection and view matrix is setup
+	if ( Cmdline_env && !Env_cubemap_drawn ) {
+		setup_environment_mapping(cid);
+
+		if ( !Dynamic_environment ) {
+			Env_cubemap_drawn = true;
+		}
+
+	}
+
+	gr_zbuffer_clear(TRUE);
+
+	gr_reset_clip();
+
+	gr_screen.gf_post_process_before();
+
+	clip_frame_view();
+
+	neb2_render_setup(cid);
+
 	camera *cam = cid.getCamera();
 	matrix eye_no_jitter = vmd_identity_matrix;
 	if(cam != NULL)
@@ -3902,22 +3921,6 @@
 		shield_point_multi_setup();
 	}
 
-	// this needs to happen after g3_start_frame() and before the primary projection and view matrix is setup
-	if ( Cmdline_env && !Env_cubemap_drawn ) {
-		setup_environment_mapping(cid);
-
-		if ( !Dynamic_environment ) {
-			Env_cubemap_drawn = true;
-		}
-	}
-	gr_zbuffer_clear(TRUE);
-
-	gr_screen.gf_post_process_before();
-
-	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);
@@ -4585,11 +4588,10 @@
 			gr_set_color(0,0,0);
 			gr_rect(0, 0, gr_screen.max_w, yborder, false);
 			gr_rect(0, gr_screen.max_h-yborder, gr_screen.max_w, yborder, false);
-		} else {
-			//Set clipping
-			gr_reset_clip();
-			gr_set_clip(0, yborder, gr_screen.max_w, gr_screen.max_h - yborder*2, false );
 		}
+		//Set clipping
+		gr_reset_clip();
+		gr_set_clip(0, yborder, gr_screen.max_w, gr_screen.max_h - yborder*2, false );
 	}
 	else if(Cutscene_bar_flags & CUB_CUTSCENE)
 	{
@@ -4599,10 +4601,10 @@
 			gr_set_color(0,0,0);
 			gr_rect(0, 0, gr_screen.max_w, yborder, false);
 			gr_rect(0, gr_screen.max_h-yborder, gr_screen.max_w, yborder, false);
-		} else {
-			gr_reset_clip();
-			gr_set_clip(0, yborder, gr_screen.max_w, gr_screen.max_h - (yborder*2), false );
 		}
+
+		gr_reset_clip();
+		gr_set_clip(0, yborder, gr_screen.max_w, gr_screen.max_h - (yborder*2), false );
 	}
 }
 
Index: code/nebula/neb.cpp
===================================================================
--- code/nebula/neb.cpp	(revision 5725)
+++ code/nebula/neb.cpp	(working copy)
@@ -470,23 +470,6 @@
 	}
 }
 
-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)
 {
@@ -502,8 +485,21 @@
 	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
-		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;
+
 		return;	 
 	}
 
Index: code/nebula/neb.h
===================================================================
--- code/nebula/neb.h	(revision 5725)
+++ code/nebula/neb.h	(working copy)
@@ -140,8 +140,5 @@
 
 void neb2_get_fog_color(ubyte *r, ubyte *g, ubyte *b);
 
-// set frame background color
-void neb2_set_frame_backg();
 
-
 #endif
