diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-25 23:32:04 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-25 23:32:04 +0200 |
commit | 36665ce0b249a31305a90d1f628b6a4123d81517 (patch) | |
tree | 339db4f01b4a2f1bff7704685759809f3fe622aa /src/video_core/renderer_opengl/gl_resource_manager.cpp | |
parent | texture_cache: Query MemoryManager from the system (diff) | |
download | yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.tar yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.tar.gz yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.tar.bz2 yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.tar.lz yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.tar.xz yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.tar.zst yuzu-36665ce0b249a31305a90d1f628b6a4123d81517.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 | 3 |
1 files changed, 1 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 9f840a42e..a5f83a8f7 100644 --- a/src/video_core/renderer_opengl/gl_resource_manager.cpp +++ b/src/video_core/renderer_opengl/gl_resource_manager.cpp @@ -149,8 +149,7 @@ void OGLBuffer::Release() { } void OGLBuffer::MakeStreamCopy(std::size_t buffer_size) { - if (handle == 0 || buffer_size == 0) - return; + ASSERT_OR_EXECUTE((handle == 0 || buffer_size == 0), { return; }); glNamedBufferData(handle, buffer_size, nullptr, GL_STREAM_COPY); } |