renderer: don't fill into a NULL caps

macos/master
Dave Airlie 10 years ago
parent 159dafe1a1
commit 1f4f6912e7
  1. 4
      src/vrend_renderer.c

@ -5133,6 +5133,10 @@ void vrend_renderer_fill_caps(uint32_t set, uint32_t version,
int i;
GLint max;
int gl_ver = epoxy_gl_version();
if (!caps)
return;
memset(caps, 0, sizeof(*caps));
if (set != 1 && set != 0) {

Loading…
Cancel
Save