No subject


Mon Nov 1 09:12:11 PDT 2010


p290
G.3
Changes to the Imaging Subset
The subset of blending features described by BlendEquation, BlendColor,
and the BlendFunc modes CONSTANT COLOR, ONE MINUS CONSTANT COLOR,
CONSTANT ALPHA, and ONE MINUS CONSTANT ALPHA are now supported. These
feature were available only in the optional imaging subset in versions
1.2 and 1.3 of the GL.

If I interpret this correctly, it means glBlendEquation was optional
before 1.4 and thus could not be called directly.

Just below that paragraph :
"Blend squaring was promoted from the GL NV blend square extension."

So if we have 1.4, we have NV_blend_square too.

And finally D.9.6 p263 seems to indicate that EXT_blend_minmax is part
of 1.2
---
 tests/general/blendminmax.c |    5 ++---
 tests/general/blendsquare.c |    5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/tests/general/blendminmax.c b/tests/general/blendminmax.c
index 2b2c6b8..dc7fc98 100644
--- a/tests/general/blendminmax.c
+++ b/tests/general/blendminmax.c
@@ -124,9 +124,8 @@ piglit_display(void)
 void
 piglit_init(int argc, char **argv)
 {
-	if (!GLEW_ARB_imaging && !GLEW_EXT_blend_minmax) {
-		printf("Sorry, this program requires either GL_ARB_imaging or "
-		       "GL_EXT_blend_minmax.\n");
+	if (!GLEW_VERSION_1_4) {
+		printf("Sorry, this program requires OpenGL 1.4.\n");
 		piglit_report_result(PIGLIT_SKIP);
 	}
 
diff --git a/tests/general/blendsquare.c b/tests/general/blendsquare.c
index 396618a..d20465f 100644
--- a/tests/general/blendsquare.c
+++ b/tests/general/blendsquare.c
@@ -89,9 +89,8 @@ piglit_display(void)
 void
 piglit_init(int argc, char **argv)
 {
-	if (!GLEW_VERSION_1_4 && !GLEW_NV_blend_square) {
-		printf("Sorry, this program requires either OpenGL 1.4 or "
-		       "GL_NV_blend_square\n");
+	if (!GLEW_VERSION_1_4) {
+		printf("Sorry, this program requires OpenGL 1.4\n");
 		piglit_report_result(PIGLIT_SKIP);
 	}
 
-- 
1.7.3.2



More information about the Piglit mailing list