Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected TexCount check (needs at least 1 texture set, not at least …

…2). Fixes issue [#2677]: "Framebuffer Object sample crashes".

git-svn-id: https://opentk.svn.sourceforge.net/svnroot/opentk/trunk@3082 ebc5dd9b-fb1d-0410-b6f8-d24c324e9604
  • Loading branch information...
commit 79ce8ba2fd3990d7f4521a7ba63f84d2103dea30 1 parent a63c056
the_fiddler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/Examples/Shapes/TorusKnot.cs
2  Source/Examples/Shapes/TorusKnot.cs
View
@@ -19,7 +19,7 @@ public TorusKnot( int pathsteps, int shapevertices, double radius, int p, int q,
{
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;
Please sign in to comment.
Something went wrong with that request. Please try again.