mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 19:25:35 +00:00
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
b3f846dbc6
commit
b825371460
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue