summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_resource_manager.cpp3
-rw-r--r--src/video_core/renderer_opengl/gl_resource_manager.h2
2 files changed, 2 insertions, 3 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);
}
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.h b/src/video_core/renderer_opengl/gl_resource_manager.h
index b2aa558a1..3a85a1d4c 100644
--- a/src/video_core/renderer_opengl/gl_resource_manager.h
+++ b/src/video_core/renderer_opengl/gl_resource_manager.h
@@ -186,7 +186,7 @@ public:
/// Deletes the internal OpenGL resource
void Release();
- // Converts the buffer into a persistant storage buffer
+ // Converts the buffer into a stream copy buffer with a fixed size
void MakeStreamCopy(std::size_t buffer_size);
GLuint handle = 0;