Index: code/graphics/gropengltexture.cpp
===================================================================
--- code/graphics/gropengltexture.cpp	(revision 11207)
+++ code/graphics/gropengltexture.cpp	(working copy)
@@ -1060,8 +1060,11 @@
 		*u_scale = t->u_scale;
 		*v_scale = t->v_scale;
 
+		GL_CHECK_FOR_ERRORS("tcache_set_internal() - before SetTarget()");
 		GL_state.Texture.SetTarget(t->texture_target);
+		GL_CHECK_FOR_ERRORS("tcache_set_internal() - between SetTarget() and Enable()");
 		GL_state.Texture.Enable(t->texture_id);
+		GL_CHECK_FOR_ERRORS("tcache_set_internal() - after Enable()");
 
 		if ( (t->wrap_mode != GL_texture_addressing) && (bitmap_type != TCACHE_TYPE_AABITMAP)
 			&& (bitmap_type != TCACHE_TYPE_INTERFACE) && (bitmap_type != TCACHE_TYPE_CUBEMAP) )
