diff options
author | Subv <subv2112@gmail.com> | 2018-04-14 18:45:23 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-15 05:54:23 +0200 |
commit | 1957640ea25b34bec9e356a06dadf5937933c4ef (patch) | |
tree | 62fb25a03d53e032bfada62a525e2d23be1570e8 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | GPU: Added a function to determine whether a shader stage is enabled or not. (diff) | |
download | yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.tar yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.tar.gz yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.tar.bz2 yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.tar.lz yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.tar.xz yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.tar.zst yuzu-1957640ea25b34bec9e356a06dadf5937933c4ef.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index adc684f9e..71b862114 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -46,6 +46,14 @@ RasterizerOpenGL::RasterizerOpenGL() { state.texture_units[i].sampler = texture_samplers[i].sampler.handle; } + // Create SSBOs + for (size_t stage = 0; stage < ssbos.size(); ++stage) { + for (size_t buffer = 0; buffer < ssbos[stage].size(); ++buffer) { + ssbos[stage][buffer].Create(); + state.draw.const_buffers[stage][buffer].ssbo = ssbos[stage][buffer].handle; + } + } + GLint ext_num; glGetIntegerv(GL_NUM_EXTENSIONS, &ext_num); for (GLint i = 0; i < ext_num; i++) { |