mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
i965: move declaration before code
This commit is contained in:
parent
dbc9a1d33b
commit
3b946cde45
1 changed files with 1 additions and 2 deletions
|
|
@ -44,6 +44,7 @@ static void upload_sf_vp(struct brw_context *brw)
|
|||
struct brw_sf_viewport sfv;
|
||||
GLfloat y_scale, y_bias;
|
||||
const GLboolean render_to_fbo = (ctx->DrawBuffer->Name != 0);
|
||||
const GLfloat *v = ctx->Viewport._WindowMap.m;
|
||||
|
||||
memset(&sfv, 0, sizeof(sfv));
|
||||
|
||||
|
|
@ -58,8 +59,6 @@ static void upload_sf_vp(struct brw_context *brw)
|
|||
|
||||
/* _NEW_VIEWPORT */
|
||||
|
||||
const GLfloat *v = ctx->Viewport._WindowMap.m;
|
||||
|
||||
sfv.viewport.m00 = v[MAT_SX];
|
||||
sfv.viewport.m11 = v[MAT_SY] * y_scale;
|
||||
sfv.viewport.m22 = v[MAT_SZ] * depth_scale;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue