diff options
author | Subv <subv2112@gmail.com> | 2018-03-27 04:44:03 +0200 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2018-04-07 04:40:24 +0200 |
commit | c28ed858750507339153edc94a579b138c74eaca (patch) | |
tree | f6ffe18c3e5987ee8e720cf9ce67852dcca037b7 /src | |
parent | GL: Ported the SamplerInfo struct from citra. (diff) | |
download | yuzu-c28ed858750507339153edc94a579b138c74eaca.tar yuzu-c28ed858750507339153edc94a579b138c74eaca.tar.gz yuzu-c28ed858750507339153edc94a579b138c74eaca.tar.bz2 yuzu-c28ed858750507339153edc94a579b138c74eaca.tar.lz yuzu-c28ed858750507339153edc94a579b138c74eaca.tar.xz yuzu-c28ed858750507339153edc94a579b138c74eaca.tar.zst yuzu-c28ed858750507339153edc94a579b138c74eaca.zip |
Diffstat (limited to '')
-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 307c5bcc1..09cd4859b 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -66,6 +66,12 @@ RasterizerOpenGL::RasterizerOpenGL() { has_ARB_separate_shader_objects = false; has_ARB_vertex_attrib_binding = false; + // Create sampler objects + for (size_t i = 0; i < texture_samplers.size(); ++i) { + texture_samplers[i].Create(); + state.texture_units[i].sampler = texture_samplers[i].sampler.handle; + } + GLint ext_num; glGetIntegerv(GL_NUM_EXTENSIONS, &ext_num); for (GLint i = 0; i < ext_num; i++) { |