-
-
Save sobkas/6917486140fb1cc8dfa4 to your computer and use it in GitHub Desktop.
Patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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