From 4583dcbd4d2b481a212c49e905df94f93de3a050 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 27 Nov 2017 02:19:02 -0800 Subject: [PATCH] libobs-opengl: Make update_buffer data param const --- libobs-opengl/gl-helpers.c | 2 +- libobs-opengl/gl-helpers.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs-opengl/gl-helpers.c b/libobs-opengl/gl-helpers.c index 73d10425b..8a7a75708 100644 --- a/libobs-opengl/gl-helpers.c +++ b/libobs-opengl/gl-helpers.c @@ -148,7 +148,7 @@ bool gl_create_buffer(GLenum target, GLuint *buffer, GLsizeiptr size, return success; } -bool update_buffer(GLenum target, GLuint buffer, void *data, size_t size) +bool update_buffer(GLenum target, GLuint buffer, const void *data, size_t size) { void *ptr; bool success = true; diff --git a/libobs-opengl/gl-helpers.h b/libobs-opengl/gl-helpers.h index 43a645d19..f1f912215 100644 --- a/libobs-opengl/gl-helpers.h +++ b/libobs-opengl/gl-helpers.h @@ -157,5 +157,5 @@ extern bool gl_copy_texture(struct gs_device *device, extern bool gl_create_buffer(GLenum target, GLuint *buffer, GLsizeiptr size, const GLvoid *data, GLenum usage); -extern bool update_buffer(GLenum target, GLuint buffer, void *data, +extern bool update_buffer(GLenum target, GLuint buffer, const void *data, size_t size);