Commit: 913903af74fc1acebb85c9cf4948bd5e37f6f354
Author: Julian Eisel
Date:   Fri Oct 28 23:23:25 2016 +0200
Branches: HMD_viewport
https://developer.blender.org/rB913903af74fc1acebb85c9cf4948bd5e37f6f354

Fix warning with WITH_OPENHMD enabled

===================================================================

M       intern/ghost/intern/GHOST_C-api.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_C-api.cpp 
b/intern/ghost/intern/GHOST_C-api.cpp
index 920d71d..231fcf6 100644
--- a/intern/ghost/intern/GHOST_C-api.cpp
+++ b/intern/ghost/intern/GHOST_C-api.cpp
@@ -1024,6 +1024,7 @@ void GHOST_HMDsetDeviceIPD(float value)
 #endif
 }
 
+#ifndef WITH_OPENHMD
 static void ghost_UnitMat(float r_mat[4][4])
 {
        r_mat[0][0] = r_mat[1][1] = r_mat[2][2] = r_mat[3][3] = 1.0f;
@@ -1032,6 +1033,7 @@ static void ghost_UnitMat(float r_mat[4][4])
        r_mat[2][0] = r_mat[2][1] = r_mat[2][3] = 0.0f;
        r_mat[3][0] = r_mat[3][1] = r_mat[3][2] = 0.0f;
 }
+#endif
 
 void GHOST_HMDgetLeftModelviewMatrix(float r_mat[4][4])
 {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to