commit 8840b4285c0fd1dc610a898d2c86fbbe880f69bd parent 8ef1417b69b46f75686c6334bdfa24b14a2260f5 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Apr 17 23:16:18 +0300 Compile fix Diffstat:
renderer.cc | | | 10 | +++++----- |
diff --git a/renderer.cc b/renderer.cc @@ -73,6 +73,11 @@ static GLenum textureformat_to_glenum( TextureFormat format, bool srgb ) { } } +static bool is_compressed( TextureFormat format ) { + return format == TEXFMT_BC1 || format == TEXFMT_BC3 || + format == TEXFMT_BC4 || format == TEXFMT_BC5; +} + VB renderer_new_vb( const void * data, u32 len, BufferUsage usage ) { // glBufferData's length parameter is GLsizeiptr, so we need to make // sure len fits in a signed 32bit int @@ -278,11 +283,6 @@ void renderer_delete_shader( Shader shader ) { glDeleteProgram( shader ); } -static bool is_compressed( TextureFormat format ) { - return format == TEXFMT_BC1 || format == TEXFMT_BC3 || - format == TEXFMT_BC4 || format == TEXFMT_BC5; -} - static int mipmap_levels( u32 width, u32 height ) { int levels = 1; while( width > 1 || height > 1 ) {