diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-26 01:26:59 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-26 01:26:59 +0200 |
commit | 5aeabd9a1777de5d0d4ab540edbda325c8fec64e (patch) | |
tree | 9ce48ff31f54fb8ca2cb929a3d128b066a15259c /src/video_core/renderer_opengl/gl_resource_manager.cpp | |
parent | texture_cache: Corrections, documentation and asserts (diff) | |
download | yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.tar yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.tar.gz yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.tar.bz2 yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.tar.lz yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.tar.xz yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.tar.zst yuzu-5aeabd9a1777de5d0d4ab540edbda325c8fec64e.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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.cpp b/src/video_core/renderer_opengl/gl_resource_manager.cpp index a5f83a8f7..5c96c1d46 100644 --- a/src/video_core/renderer_opengl/gl_resource_manager.cpp +++ b/src/video_core/renderer_opengl/gl_resource_manager.cpp @@ -149,7 +149,7 @@ void OGLBuffer::Release() { } void OGLBuffer::MakeStreamCopy(std::size_t buffer_size) { - ASSERT_OR_EXECUTE((handle == 0 || buffer_size == 0), { return; }); + ASSERT_OR_EXECUTE((handle != 0 && buffer_size != 0), { return; }); glNamedBufferData(handle, buffer_size, nullptr, GL_STREAM_COPY); } |