aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-06 20:06:34 +0100
committerMarc Haesen <marc@hc-consult.be>2012-01-06 20:06:34 +0100
commit2ae775fec514a032da4e6ec7528c2ef98c3913ee (patch)
tree5c5f9708890029bd8e5c0a2826aa515e1ae936bd
parent2d52fd67e716caae85bce150b01bc5c284b12de7 (diff)
downloadvcxsrv-2ae775fec514a032da4e6ec7528c2ef98c3913ee.tar.gz
vcxsrv-2ae775fec514a032da4e6ec7528c2ef98c3913ee.tar.bz2
vcxsrv-2ae775fec514a032da4e6ec7528c2ef98c3913ee.zip
Solved compile problem
-rw-r--r--mesalib/src/mesa/drivers/dri/common/drisw_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesalib/src/mesa/drivers/dri/common/drisw_util.c b/mesalib/src/mesa/drivers/dri/common/drisw_util.c
index 0ec124ae5..ed30e135f 100644
--- a/mesalib/src/mesa/drivers/dri/common/drisw_util.c
+++ b/mesalib/src/mesa/drivers/dri/common/drisw_util.c
@@ -109,6 +109,7 @@ driCreateContextAttribs(__DRIscreen *screen, int api,
unsigned major_version = 1;
unsigned minor_version = 0;
uint32_t flags = 0;
+ unsigned i;
/* Either num_attribs is zero and attribs is NULL, or num_attribs is not
* zero and attribs is not NULL.
@@ -130,7 +131,7 @@ driCreateContextAttribs(__DRIscreen *screen, int api,
return NULL;
}
- for (unsigned i = 0; i < num_attribs; i++) {
+ for (i = 0; i < num_attribs; i++) {
switch (attribs[i * 2]) {
case __DRI_CTX_ATTRIB_MAJOR_VERSION:
major_version = attribs[i * 2 + 1];