From 554d09b33c4d100a756fbfbd8d5651924b786674 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 27 Apr 2008 05:10:17 -0400 Subject: [PATCH] Don't update vertex arrays if bound program has no vertex shader. --HG-- branch : trunk --- mojoshader_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader_opengl.c b/mojoshader_opengl.c index 9e6b2ddd..5626a2dd 100644 --- a/mojoshader_opengl.c +++ b/mojoshader_opengl.c @@ -489,7 +489,7 @@ void MOJOSHADER_glSetVertexAttribute(MOJOSHADER_usage usage, int normalized, unsigned int stride, const void *ptr) { - if (bound_program == NULL) + if ((bound_program == NULL) || (bound_program->vertex == NULL)) return; // Since glVertexPointer() lacks the flexibility that we can get from