diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-09 06:40:19 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-09 06:40:19 +0100 |
commit | 877a978a221d0418953338fe9644dc2b1d8b7b15 (patch) | |
tree | d803100fe974bce85007e9d41a07f0944207bde0 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_stream_buffer: Use DSA for buffer management (diff) | |
download | yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.tar yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.tar.gz yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.tar.bz2 yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.tar.lz yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.tar.xz yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.tar.zst yuzu-877a978a221d0418953338fe9644dc2b1d8b7b15.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 7ce8c2bcc..61ccfa104 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -153,6 +153,12 @@ GLuint RasterizerOpenGL::SetupVertexFormat() { vao_entry.Create(); const GLuint vao = vao_entry.handle; + // Eventhough we are using DSA to create this vertex array, there is a bug on Intel's blob + // that fails to properly create the vertex array if it's not bound even after creating it + // with glCreateVertexArrays + state.draw.vertex_array = vao; + state.ApplyVertexArrayState(); + glVertexArrayElementBuffer(vao, buffer_cache.GetHandle()); // Use the vertex array as-is, assumes that the data is formatted correctly for OpenGL. |