add missing gpuRotate2D function
Prototype was there, we just weren't using this yet. Part of T49450
This commit is contained in:
parent
74434beb1c
commit
06f7fba6aa
|
@ -360,6 +360,18 @@ void gpuMultMatrix2D(const float m[3][3])
|
|||
state.dirty = true;
|
||||
}
|
||||
|
||||
void gpuRotate2D(float deg)
|
||||
{
|
||||
#if SUPPORT_LEGACY_MATRIX
|
||||
if (state.mode == MATRIX_MODE_INACTIVE) {
|
||||
glRotatef(deg, 0.0f, 0.0f, 1.0f);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
BLI_assert(false); /* TODO: finish for MATRIX_MODE_2D */
|
||||
}
|
||||
|
||||
void gpuRotate3f(float deg, float x, float y, float z)
|
||||
{
|
||||
const float axis[3] = {x, y, z};
|
||||
|
|
Loading…
Reference in New Issue