mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
Reposition variable declarations to avoid C99.
This commit is contained in:
parent
ab88c0a888
commit
584eca5eee
@ -1914,9 +1914,10 @@ cogl_set_source (CoglHandle material_handle)
|
||||
void
|
||||
cogl_set_source_texture (CoglHandle texture_handle)
|
||||
{
|
||||
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
||||
CoglColor white;
|
||||
|
||||
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
||||
|
||||
g_return_if_fail (texture_handle != COGL_INVALID_HANDLE);
|
||||
|
||||
cogl_material_set_layer (ctx->default_material, 0, texture_handle);
|
||||
|
@ -88,9 +88,11 @@ cogl_matrix_rotate (CoglMatrix *matrix,
|
||||
{
|
||||
CoglMatrix rotation;
|
||||
CoglMatrix result;
|
||||
float c, s;
|
||||
|
||||
angle *= G_PI / 180.0f;
|
||||
float c = cosf (angle);
|
||||
float s = sinf (angle);
|
||||
c = cosf (angle);
|
||||
s = sinf (angle);
|
||||
|
||||
rotation.xx = x * x * (1.0f - c) + c;
|
||||
rotation.yx = y * x * (1.0f - c) + z * s;
|
||||
|
Loading…
Reference in New Issue
Block a user