Corrected TexCount check (needs at least 1 texture set, not at least 2). Fixes issue [#2677]: "Framebuffer Object sample crashes".

This commit is contained in:
the_fiddler 2011-09-06 12:14:42 +00:00
parent b3f846dbc6
commit b825371460

View file

@ -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( 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( 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; PrimitiveMode = OpenTK.Graphics.OpenGL.BeginMode.TriangleStrip;