-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xorg-server-devel: Update to 1.20.x branch
- Loading branch information
1 parent
910235c
commit 62b3a45
Showing
9 changed files
with
171 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x11/xorg-server-devel/files/5000-sdksyms.sh-Use-CPPFLAGS-not-CFLAGS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x11/xorg-server-devel/files/5001-Revert-dix-Restore-PaintWindow-screen-hook.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x11/xorg-server-devel/files/5002-Workaround-the-GC-clipping-problem-in-miPaintWindow-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x11/xorg-server-devel/files/5003-Use-old-miTrapezoids-and-miTriangles-routines.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x11/xorg-server-devel/files/5004-fb-Revert-fb-changes-that-broke-XQuartz.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
x11/xorg-server-devel/files/5005-fb-Revert-fb-changes-that-broke-XQuartz.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
x11/xorg-server-devel/files/fix-calloc-free-mis-match-bug.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
diff --git a/hw/xquartz/GL/visualConfigs.c b/hw/xquartz/GL/visualConfigs.c | ||
index 69b18f6a0..79a4cce58 100644 | ||
--- a/hw/xquartz/GL/visualConfigs.c | ||
+++ b/hw/xquartz/GL/visualConfigs.c | ||
@@ -59,7 +59,7 @@ | ||
/* Based originally on code from indirect.c which was based on code from i830_dri.c. */ | ||
__GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber) { | ||
int numConfigs = 0; | ||
- __GLXconfig *visualConfigs, *c; | ||
+ __GLXconfig *visualConfigs, *c, *last_c; | ||
struct glCapabilities caps; | ||
struct glCapabilitiesConfig *conf; | ||
int stereo, depth, aux, buffers, stencil, accum, color, msample; | ||
@@ -113,7 +113,7 @@ __GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber) | ||
if(numConfigsPtr) | ||
*numConfigsPtr = numConfigs; | ||
|
||
- visualConfigs = calloc(sizeof(*visualConfigs), numConfigs); | ||
+ visualConfigs = calloc(sizeof(*visualConfigs),1); | ||
|
||
if(NULL == visualConfigs) { | ||
ErrorF("xcalloc failure when allocating visualConfigs\n"); | ||
@@ -122,6 +122,7 @@ __GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber) | ||
} | ||
|
||
c = visualConfigs; /* current buffer */ | ||
+ int confCount = 0; | ||
for(conf = caps.configurations; conf; conf = conf->next) { | ||
for(stereo = 0; stereo < (conf->stereo ? 2 : 1); ++stereo) { | ||
for(aux = 0; aux < (conf->aux_buffers ? 2 : 1); ++aux) { | ||
@@ -134,10 +135,12 @@ __GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber) | ||
for(depth = 0; depth < conf->total_depth_buffer_depths; ++depth) { | ||
for(msample = 0; msample < (conf->multisample_buffers + 1); ++msample) { | ||
|
||
+ ++confCount; | ||
+ | ||
// Global | ||
c->visualID = -1; | ||
c->visualType = GLX_TRUE_COLOR; | ||
- c->next = c + 1; | ||
+ c->next = calloc(sizeof(*visualConfigs),1); | ||
|
||
c->level = 0; | ||
c->indexBits = 0; | ||
@@ -260,6 +263,7 @@ __GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber) | ||
/* EXT_framebuffer_sRGB */ | ||
c->sRGBCapable = GL_FALSE; | ||
|
||
+ last_c = c; | ||
c = c->next; | ||
} | ||
} | ||
@@ -271,10 +275,11 @@ __GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber) | ||
} | ||
} | ||
|
||
- (c-1)->next = NULL; | ||
+ free(last_c->next); | ||
+ last_c->next = NULL; | ||
|
||
- if (c - visualConfigs != numConfigs) { | ||
- FatalError("numConfigs calculation error in setVisualConfigs! numConfigs is %d i is %d\n", numConfigs, (int)(c - visualConfigs)); | ||
+ if (confCount != numConfigs) { | ||
+ FatalError("numConfigs calculation error in setVisualConfigs! numConfigs is %d count is %d\n", numConfigs, confCount); | ||
} | ||
|
||
freeGlCapabilities(&caps); |