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:
parent
809d369c52
commit
c7b8453f24
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue