diff options
author | marha <marha@users.sourceforge.net> | 2013-10-25 17:15:52 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-10-25 17:15:52 +0200 |
commit | feb35c5e0724010fc4431e4e4fb24720fcdffe80 (patch) | |
tree | 8f5146fd7ea7fc208f6da06bd8755c265f39d7fa /mesalib/src/mesa/drivers/dri/common | |
parent | 5b4c4c77b012ceac7b0f4d3ef2f33d91f01084d0 (diff) | |
download | vcxsrv-feb35c5e0724010fc4431e4e4fb24720fcdffe80.tar.gz vcxsrv-feb35c5e0724010fc4431e4e4fb24720fcdffe80.tar.bz2 vcxsrv-feb35c5e0724010fc4431e4e4fb24720fcdffe80.zip |
Solved mesa compilation errors
Diffstat (limited to 'mesalib/src/mesa/drivers/dri/common')
-rwxr-xr-x | mesalib/src/mesa/drivers/dri/common/dri_util.c | 3 | ||||
-rw-r--r-- | mesalib/src/mesa/drivers/dri/common/megadriver_stub.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mesalib/src/mesa/drivers/dri/common/dri_util.c b/mesalib/src/mesa/drivers/dri/common/dri_util.c index 7f84e6496..f69cfcb65 100755 --- a/mesalib/src/mesa/drivers/dri/common/dri_util.c +++ b/mesalib/src/mesa/drivers/dri/common/dri_util.c @@ -114,6 +114,7 @@ dri2CreateNewScreen2(int scrn, int fd, static const __DRIextension *emptyExtensionList[] = { NULL }; __DRIscreen *psp; int gl_version_override; + int i; psp = calloc(1, sizeof(*psp)); if (!psp) @@ -126,7 +127,7 @@ dri2CreateNewScreen2(int scrn, int fd, * (megadrivers), use that instead. */ if (driver_extensions) { - for (int i = 0; driver_extensions[i]; i++) { + for (i = 0; driver_extensions[i]; i++) { if (strcmp(driver_extensions[i]->name, __DRI_DRIVER_VTABLE) == 0) { psp->driver = ((__DRIDriverVtableExtension *)driver_extensions[i])->vtable; diff --git a/mesalib/src/mesa/drivers/dri/common/megadriver_stub.c b/mesalib/src/mesa/drivers/dri/common/megadriver_stub.c index 6bf5d7327..3a33d74ab 100644 --- a/mesalib/src/mesa/drivers/dri/common/megadriver_stub.c +++ b/mesalib/src/mesa/drivers/dri/common/megadriver_stub.c @@ -37,5 +37,5 @@ __DRIconfig **stub_error_init_screen(__DRIscreen *psp) * never be used. */ const struct __DriverAPIRec driDriverAPI = { - .InitScreen = stub_error_init_screen, + /*.InitScreen = */stub_error_init_screen, }; |