summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-24 18:10:35 +0200
committerLioncash <mathew1800@gmail.com>2018-07-24 18:10:37 +0200
commit16139ed53b1b4be3ffc985b84ad966c8920082d4 (patch)
tree9ed4e5303a2bb4c6d8fd7251cf0bccb0e3db6749
parentgl_rasterizer: Use in-class member initializers where applicable (diff)
downloadyuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.tar
yuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.tar.gz
yuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.tar.bz2
yuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.tar.lz
yuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.tar.xz
yuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.tar.zst
yuzu-16139ed53b1b4be3ffc985b84ad966c8920082d4.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index d2ac067c0..f45fbbcd4 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -5,6 +5,7 @@
#include <algorithm>
#include <memory>
#include <string>
+#include <string_view>
#include <tuple>
#include <utility>
#include <glad/glad.h>
@@ -54,7 +55,8 @@ RasterizerOpenGL::RasterizerOpenGL() {
GLint ext_num;
glGetIntegerv(GL_NUM_EXTENSIONS, &ext_num);
for (GLint i = 0; i < ext_num; i++) {
- std::string extension{reinterpret_cast<const char*>(glGetStringi(GL_EXTENSIONS, i))};
+ const std::string_view extension{
+ reinterpret_cast<const char*>(glGetStringi(GL_EXTENSIONS, i))};
if (extension == "GL_ARB_buffer_storage") {
has_ARB_buffer_storage = true;