Skip to content

Instantly share code, notes, and snippets.

@sobkas
Created January 19, 2015 12:01
Show Gist options
  • Save sobkas/6917486140fb1cc8dfa4 to your computer and use it in GitHub Desktop.
Save sobkas/6917486140fb1cc8dfa4 to your computer and use it in GitHub Desktop.
Patch
diff --git a/src/gallium/state_trackers/nine/vertexdeclaration9.c b/src/gallium/state_trackers/nine/vertexdeclaration9.c
index dd0887e..8986d30 100644
--- a/src/gallium/state_trackers/nine/vertexdeclaration9.c
+++ b/src/gallium/state_trackers/nine/vertexdeclaration9.c
@@ -190,7 +190,7 @@ NineVertexDeclaration9_ctor( struct NineVertexDeclaration9 *This,
}
caps = NineDevice9_GetCaps(This->base.device);
- user_assert(0 < This->nelems && This->nelems <= caps->MaxStreams, D3DERR_INVALIDCALL);
+ user_assert(0 <= This->nelems && This->nelems <= caps->MaxStreams, D3DERR_INVALIDCALL);
This->decls = CALLOC(This->nelems+1, sizeof(D3DVERTEXELEMENT9));
This->elems = CALLOC(This->nelems, sizeof(struct pipe_vertex_element));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment