From 0bd147bd14e077389535234599b1c2b3b42cbf1c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 29 Jan 2015 15:50:21 +0100 Subject: vo_opengl: some minor cleanups default_tex_params() and texture_size() are each called only once, so move inline/reimplement them at the caller. image_dw/dh were unused. texture_w/h, image_format, and component_bits were rarely used, and can be replaced. Regroup some other fields. Rename surface_num to surface_idx, because the former sounded like a count, and not an index. Move fbosurface_next() closer to its callers too. Move the DebugMessageCallback() code to gl_utils.c (also simplify it by always setting the callback, instead of only when it changes). --- video/out/gl_utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/gl_utils.h') diff --git a/video/out/gl_utils.h b/video/out/gl_utils.h index 514b873dbe..b73e12a8eb 100644 --- a/video/out/gl_utils.h +++ b/video/out/gl_utils.h @@ -80,4 +80,6 @@ void fbotex_uninit(struct fbotex *fbo); void gl_matrix_ortho2d(float m[3][3], float x0, float x1, float y0, float y1); +void gl_set_debug_logger(GL *gl, struct mp_log *log); + #endif -- cgit v1.2.3