summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/ra.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-18 02:04:29 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-18 02:33:29 +0200
commit01058b16f98d57ed5ce8637731e1d56d44dbcc5c (patch)
treee9ad6caa00925c13f5e0bf446b31da703bac745b /video/out/opengl/ra.h
parentbe05c9eb581f2fb1129088301cc48737b85a65fc (diff)
downloadmpv-01058b16f98d57ed5ce8637731e1d56d44dbcc5c.tar.bz2
mpv-01058b16f98d57ed5ce8637731e1d56d44dbcc5c.tar.xz
vo_opengl: allow texture uploads to fail
Surprisingly makes the code shorter, not longer
Diffstat (limited to 'video/out/opengl/ra.h')
-rw-r--r--video/out/opengl/ra.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h
index f0798f018c..eee1728bba 100644
--- a/video/out/opengl/ra.h
+++ b/video/out/opengl/ra.h
@@ -321,8 +321,8 @@ struct ra_fns {
// the image - conversions between bit depth etc. are not supported.
// The buffer *may* be marked as "in use" while this operation is going on,
// and the contents must not be touched again by the API user until
- // buf_poll returns true.
- void (*tex_upload)(struct ra *ra, const struct ra_tex_upload_params *params);
+ // buf_poll returns true. Returns whether successful.
+ bool (*tex_upload)(struct ra *ra, const struct ra_tex_upload_params *params);
// Create a buffer. This can be used as a persistently mapped buffer,
// a uniform buffer, a shader storage buffer or possibly others.