CubicVR2: more restricted operators on structures by removing convert-to-pointer. (Fix #550 ?)

This commit is contained in:
vsonnier
2017-05-28 12:28:19 +02:00
parent 56b56685e0
commit 3095f8205a
11 changed files with 108 additions and 52 deletions
+2 -2
View File
@@ -308,7 +308,7 @@ void GLPanel::calcTransform(mat4 transform_in) {
void GLPanel::draw() {
float min = -1.0, max = 1.0;
glLoadMatrixf(transform);
glLoadMatrixf(transform.to_ptr());
if (fillType != GLPANEL_FILL_NONE && visible) {
glEnable(GL_BLEND);
@@ -378,7 +378,7 @@ void GLPanel::draw() {
}
// if (coord == GLPANEL_Y_UP) {
// }
glLoadMatrixf(transform * mCoord);
glLoadMatrixf((transform * mCoord).to_ptr());
drawPanelContents();
}
}