diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-06 22:49:23 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-30 23:10:11 +0100 |
commit | 4b676e7786f03a86fd1ecae50eae61098fd3766d (patch) | |
tree | 34ac3f96aea40f31bf00b3668a83f148e37ead45 /src/video_core/renderer_opengl/gl_resource_manager.cpp | |
parent | Merge pull request #1485 from FernandoS27/render-info (diff) | |
download | yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.tar yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.tar.gz yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.tar.bz2 yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.tar.lz yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.tar.xz yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.tar.zst yuzu-4b676e7786f03a86fd1ecae50eae61098fd3766d.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_resource_manager.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_resource_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.cpp b/src/video_core/renderer_opengl/gl_resource_manager.cpp index 1da744158..4170cbd3c 100644 --- a/src/video_core/renderer_opengl/gl_resource_manager.cpp +++ b/src/video_core/renderer_opengl/gl_resource_manager.cpp @@ -15,12 +15,12 @@ MICROPROFILE_DEFINE(OpenGL_ResourceDeletion, "OpenGL", "Resource Deletion", MP_R namespace OpenGL { -void OGLTexture::Create() { +void OGLTexture::Create(GLenum target) { if (handle != 0) return; MICROPROFILE_SCOPE(OpenGL_ResourceCreation); - glGenTextures(1, &handle); + glCreateTextures(target, 1, &handle); } void OGLTexture::Release() { |