Replace gluProjectf/gluUnprojectf with own versions. Also changed gGLModelView/gGLProjection and other related matrices to LLMatrix4a.
This commit is contained in:
@@ -3748,7 +3748,7 @@ void renderRaycast(LLDrawable* drawablep)
|
||||
{
|
||||
// draw intersection point
|
||||
gGL.pushMatrix();
|
||||
gGL.loadMatrix(gGLModelView);
|
||||
gGL.loadMatrix(gGLModelView.getF32ptr());
|
||||
LLVector3 translate(gDebugRaycastIntersection.getF32ptr());
|
||||
gGL.translatef(translate.mV[0], translate.mV[1], translate.mV[2]);
|
||||
LLCoordFrame orient;
|
||||
@@ -3850,7 +3850,7 @@ public:
|
||||
gGL.flush();
|
||||
gGL.pushMatrix();
|
||||
gGLLastMatrix = NULL;
|
||||
gGL.loadMatrix(gGLModelView);
|
||||
gGL.loadMatrix(gGLModelView.getF32ptr());
|
||||
renderVisibility(group, mCamera);
|
||||
stop_glerror();
|
||||
gGLLastMatrix = NULL;
|
||||
|
||||
Reference in New Issue
Block a user