commit 2320f250622ca4bbb286288dd902efc651a64e4b parent 85dbe4dc65755a4f18b9dac90f93dd12fc15fb20 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Sep 7 21:01:03 +0200 ImmediateContext should be const in immediate_render Diffstat:
immediate.cc | | | 2 | +- |
immediate.h | | | 2 | +- |
diff --git a/immediate.cc b/immediate.cc @@ -84,7 +84,7 @@ void immediate_sphere( } void immediate_render( - ImmediateContext * const ctx, + const ImmediateContext * const ctx, const GLint at_position, const GLint at_colour, const bool textured, const GLint at_uv, const GLint un_texture ) { diff --git a/immediate.h b/immediate.h @@ -27,7 +27,7 @@ void immediate_triangle( ImmediateContext * const ctx, void immediate_triangle( ImmediateContext * const ctx, const ImmediateVertex v1, const ImmediateVertex v2, const ImmediateVertex v3 ); -void immediate_render( ImmediateContext * const ctx, +void immediate_render( const ImmediateContext * const ctx, const GLint at_position, const GLint at_colour, const bool textured = false, const GLint at_uv = 0, const GLint un_texture = 0 );