WSrap switch with braces
This commit is contained in:
@@ -51,7 +51,7 @@ void cameraPushMatrix(camera_t *camera) {
|
|||||||
mat4 view;
|
mat4 view;
|
||||||
|
|
||||||
switch(camera->projType) {
|
switch(camera->projType) {
|
||||||
case CAMERA_PROJECTION_TYPE_ORTHOGRAPHIC:
|
case CAMERA_PROJECTION_TYPE_ORTHOGRAPHIC: {
|
||||||
assertTrue(
|
assertTrue(
|
||||||
camera->orthographic.right != camera->orthographic.left &&
|
camera->orthographic.right != camera->orthographic.left &&
|
||||||
camera->orthographic.top != camera->orthographic.bottom,
|
camera->orthographic.top != camera->orthographic.bottom,
|
||||||
@@ -67,9 +67,10 @@ void cameraPushMatrix(camera_t *camera) {
|
|||||||
projection
|
projection
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case CAMERA_PROJECTION_TYPE_PERSPECTIVE_FLIPPED:
|
case CAMERA_PROJECTION_TYPE_PERSPECTIVE_FLIPPED:
|
||||||
case CAMERA_PROJECTION_TYPE_PERSPECTIVE:
|
case CAMERA_PROJECTION_TYPE_PERSPECTIVE: {
|
||||||
const float_t aspect = (
|
const float_t aspect = (
|
||||||
(float_t)frameBufferGetWidth(FRAMEBUFFER_BOUND) /
|
(float_t)frameBufferGetWidth(FRAMEBUFFER_BOUND) /
|
||||||
(float_t)frameBufferGetHeight(FRAMEBUFFER_BOUND)
|
(float_t)frameBufferGetHeight(FRAMEBUFFER_BOUND)
|
||||||
@@ -87,6 +88,7 @@ void cameraPushMatrix(camera_t *camera) {
|
|||||||
projection[1][1] *= -1;
|
projection[1][1] *= -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(camera->viewType) {
|
switch(camera->viewType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user