Several gl calls now wrapped via LLRender (gGL) as prep for future changes:
glMatrixMode -> gGL.matrixMode ..GL_MODELVIEW -> LLRender::MM_MODELVIEW ..GL_POJECTION -> LLRender::MM_PROJECTION ..GL_TEXTURE -> LLRender::MM_TEXTURE glMultMatrix -> gGL.multMatrix glLoadMatrixf -> gGL.loadMatrix glPushMatrix -> gGL.pushMatrix glPopMatrix -> gGL.popMatrix glLoadIdentity -> gGL.loadIdentity glRotatef -> gGL.rotatef glTransformf -> gGL.transformf glOrtho -> gGL.ortho glColor3f -> gGL.diffuseColor3f glColor3fv -> gGL.diffuseColor3fv glColor4f -> gGL.diffuseColor4f glColor4fv -> gGL.diffuseColor4fv glColor4ubv -> gGL.diffuseColor4ubv glLightModelfv(GL_LIGHT_MODEL_AMBIENT -> gGL.
This commit is contained in:
@@ -514,12 +514,12 @@ void LLToolBrushLand::render()
|
||||
void LLToolBrushLand::renderOverlay(LLSurface& land, const LLVector3& pos_region,
|
||||
const LLVector3& pos_world)
|
||||
{
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
gGL.matrixMode(LLRender::MM_MODELVIEW);
|
||||
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
LLGLDepthTest mDepthTest(GL_TRUE);
|
||||
glPushMatrix();
|
||||
gGL.pushMatrix();
|
||||
gGL.color4fv(OVERLAY_COLOR.mV);
|
||||
glTranslatef(0.0f, 0.0f, 1.0f);
|
||||
gGL.translatef(0.0f, 0.0f, 1.0f);
|
||||
|
||||
S32 i = (S32) pos_region.mV[VX];
|
||||
S32 j = (S32) pos_region.mV[VY];
|
||||
@@ -573,7 +573,7 @@ void LLToolBrushLand::renderOverlay(LLSurface& land, const LLVector3& pos_region
|
||||
}
|
||||
gGL.end();
|
||||
|
||||
glPopMatrix();
|
||||
gGL.popMatrix();
|
||||
}
|
||||
|
||||
void LLToolBrushLand::determineAffectedRegions(region_list_t& regions,
|
||||
|
||||
Reference in New Issue
Block a user