Cleanup and render-to-texture tweaks.

Added two new debug render modes
Fixed bizarre issue with line-widths being sporadically inconsistent in ui. (needs glFlush for some reason)
This commit is contained in:
Shyotl
2011-04-12 16:40:23 -05:00
parent 15a8a86b15
commit c6fa0be39b
5 changed files with 203 additions and 88 deletions

View File

@@ -119,7 +119,6 @@ void render_hud_attachments();
void render_ui_3d();
void render_ui_2d();
void render_disconnected_background();
void render_hud_elements();
void display_startup()
{
@@ -681,9 +680,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
LLGLState::checkTextureChannels();
LLGLState::checkClientArrays();
BOOL to_texture = !for_snapshot &&
gPipeline.canUseVertexShaders() &&
LLPipeline::sRenderGlow;
BOOL to_texture = gPipeline.canUseVertexShaders() && (LLPipeline::sRenderDeferred || LLPipeline::sRenderGlow);
LLAppViewer::instance()->pingMainloopTimeout("Display:Swap");