diff options
author | bunnei <bunneidev@gmail.com> | 2019-02-07 02:17:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 02:17:59 +0100 |
commit | 40ac0585574499bc0dee47c4bef354c8e5676695 (patch) | |
tree | 096b8e8c32f4affbd791386daa4b1feac2d9bedc /src/video_core/renderer_opengl/gl_resource_manager.cpp | |
parent | Merge pull request #2057 from FearlessTobi/port-4586 (diff) | |
parent | gl_rasterizer_cache: Fixup test clause (diff) | |
download | yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.tar yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.tar.gz yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.tar.bz2 yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.tar.lz yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.tar.xz yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.tar.zst yuzu-40ac0585574499bc0dee47c4bef354c8e5676695.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() { |