Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37764941
en ru br
ALT Linux repos
S:4.4.3.1-alt2

Group :: System/Libraries
RPM: allegro4.4

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: allegro-4.4.2-allegrogl.patch
Download


diff -ru allegro.orig/addons/allegrogl/src/x.c allegro/addons/allegrogl/src/x.c
--- allegro.orig/addons/allegrogl/src/x.c	2018-11-19 12:40:06.000000000 +0300
+++ allegro/addons/allegrogl/src/x.c	2018-11-19 12:50:18.442284039 +0300
@@ -650,7 +650,7 @@
 		return -1;
 	}
 
-	if (!(render_type & GLX_RGBA_BIT) && !(render_type & GLX_RGBA_FLOAT_BIT)) {
+	if (!(render_type & GLX_RGBA_BIT) && !(render_type & GLX_RGBA_FLOAT_BIT_ARB)) {
 		TRACE(PREFIX_I "decode_fbconfig: Not RGBA mode\n");
 		return -1;
 	}
@@ -674,7 +674,7 @@
 	/* Floating-point depth is not supported as glx extension (yet). */
 	i->float_depth = 0;
 
-	i->float_color = (render_type & GLX_RGBA_FLOAT_BIT);
+	i->float_color = (render_type & GLX_RGBA_FLOAT_BIT_ARB);
 
 	v = glXGetVisualFromFBConfig(_xwin.display, fbc);
 	if (!v) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin