Skip to content

Commit

Permalink
fix for windows 64
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHardeman committed Mar 23, 2017
1 parent fff5ef0 commit 243027b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions GizmoExample/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void ofApp::setup(){
colors[j] = tcolor;
}
}
camera.disableMouseInput();
camera.setDistance( 14 );
camera.setPosition( 0, 1, -14 );
Expand Down Expand Up @@ -67,10 +67,10 @@ void ofApp::draw() {
boxes[i].draw();
}
light.disable();
ofDisableLighting();

ofDisableLighting();

// gizmo draw() disables depth test and lighting //
gizmo.draw( camera );

camera.end();
ofDisableDepthTest();

Expand Down
2 changes: 1 addition & 1 deletion libs/LibGizmo/ZBaseMaths.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ inline void tmatrix::Identity()
0,0,1,0,
0,0,0,1);
}
#ifdef WIN32
#if defined(__WIN32__)
inline void SSE_MatrixF_x_MatrixF(const float *matA, const float *matB, float *result)
{
__asm
Expand Down
2 changes: 2 additions & 0 deletions src/ofxGizmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ void ofxGizmo::draw( ofCamera &aCam ) {
gizmoScale->SetCameraMatrix( aCam.getModelViewMatrix().getPtr(), aCam.getProjectionMatrix().getPtr() );

if(bNodeSet) {
ofDisableDepthTest();
ofDisableLighting();
gizmo->Draw();
}
} ofPopStyle();
Expand Down

0 comments on commit 243027b

Please sign in to comment.