mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
util: move variable declaration out of for-loop
To fix MSVC build.
This commit is contained in:
parent
be909274aa
commit
ba67d72c64
1 changed files with 3 additions and 1 deletions
|
|
@ -993,9 +993,11 @@ static void *get_clear_blend_state(struct blitter_context_priv *ctx,
|
||||||
/* Create a new one. */
|
/* Create a new one. */
|
||||||
{
|
{
|
||||||
struct pipe_blend_state blend = {0};
|
struct pipe_blend_state blend = {0};
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
blend.independent_blend_enable = 1;
|
blend.independent_blend_enable = 1;
|
||||||
|
|
||||||
for (int i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
|
for i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
|
||||||
if (clear_buffers & (PIPE_CLEAR_COLOR0 << i)) {
|
if (clear_buffers & (PIPE_CLEAR_COLOR0 << i)) {
|
||||||
blend.rt[i].colormask = PIPE_MASK_RGBA;
|
blend.rt[i].colormask = PIPE_MASK_RGBA;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue