projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yabadabadoo
[vg.git]
/
src
/
vg
/
vg_tex.h
diff --git
a/src/vg/vg_tex.h
b/src/vg/vg_tex.h
index 6c7c40335a6d0e7c28ea2c57f558d89822ef9990..7a434507ca7cb53541eb643c1a108521b1c03721 100644
(file)
--- a/
src/vg/vg_tex.h
+++ b/
src/vg/vg_tex.h
@@
-84,13
+84,12
@@
VG_STATIC GLuint vg_tex2d_rgba( const char *path )
glBindTexture( GL_TEXTURE_2D, texture_name );
vg_linear_clear( vg_mem.scratch );
glBindTexture( GL_TEXTURE_2D, texture_name );
vg_linear_clear( vg_mem.scratch );
- void *file = vg_file_read( vg_mem.scratch, path );
+ u32 size;
+ void *file = vg_file_read( vg_mem.scratch, path, &size );
if( file )
{
qoi_desc info;
if( file )
{
qoi_desc info;
-
- u32 size = vg_file_size( vg_mem.scratch );
u8 *tex_buffer = qoi_decode( file, size, &info, 4 );
if( tex_buffer )
u8 *tex_buffer = qoi_decode( file, size, &info, 4 );
if( tex_buffer )