mesa: add ARB_texture_buffer_range glTextureBufferRangeEXT function
[mesa.git] / src / drm-shim / drm_shim.c
index 7c7d5f0f0092080b81b6246b71358a9c17814477..381a94fb9d1c7ccac26e4584cf0a3e1f6450942b 100644 (file)
@@ -219,6 +219,7 @@ PUBLIC FILE *fopen(const char *path, const char *mode)
          pipe(fds);
          write(fds[1], file_overrides[i].contents,
                strlen(file_overrides[i].contents));
+         close(fds[1]);
          return fdopen(fds[0], "r");
       }
    }