summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-27 04:44:03 +0200
committerJames Rowe <jroweboy@gmail.com>2018-04-07 04:40:24 +0200
commitc28ed858750507339153edc94a579b138c74eaca (patch)
treef6ffe18c3e5987ee8e720cf9ce67852dcca037b7 /src/video_core
parentGL: Ported the SamplerInfo struct from citra. (diff)
downloadyuzu-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.cpp6
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++) {