From c7b8453f249b85ea127fd3db5e879670147b2320 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 6 Sep 2011 12:14:42 +0000 Subject: [PATCH] Corrected TexCount check (needs at least 1 texture set, not at least 2). Fixes issue [#2677]: "Framebuffer Object sample crashes". --- Source/Examples/Shapes/TorusKnot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Examples/Shapes/TorusKnot.cs b/Source/Examples/Shapes/TorusKnot.cs index 7fab5c63..541bb891 100644 --- a/Source/Examples/Shapes/TorusKnot.cs +++ b/Source/Examples/Shapes/TorusKnot.cs @@ -19,7 +19,7 @@ namespace Examples.Shapes { Trace.Assert( pathsteps >= MINPathSteps, "A Path must have at least " + MINPathSteps + " Steps to form a volume." ); Trace.Assert( shapevertices >= MINShapeVertices, "A Shape must contain at least " + MINShapeVertices + " Vertices to be considered valid and create a volume." ); - Trace.Assert( TexCount > 1, "at least 1 Texture set is required." ); + Trace.Assert( TexCount >= 1, "at least 1 Texture set is required." ); PrimitiveMode = OpenTK.Graphics.OpenGL.BeginMode.TriangleStrip;