Search
lxdream.org :: lxdream/src/drivers/video_gl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gl.c
changeset 1299:645ccec8dfb0
prev1298:d0eb2307b847
author nkeynes
date Sun May 24 19:46:06 2015 +1000 (4 years ago)
permissions -rw-r--r--
last change Remove static from gl_load_frame_buffer() - also needed by video_egl.c
Fix error location in gl_frame_buffer_to_tex
file annotate diff log raw
1.1 --- a/src/drivers/video_gl.c Wed Feb 04 08:38:23 2015 +1000
1.2 +++ b/src/drivers/video_gl.c Sun May 24 19:46:06 2015 +1000
1.3 @@ -441,7 +441,7 @@
1.4 GLenum type = target_to_rgba( tmp, frame->data, frame->width, frame->height, frame->rowstride, frame->colour_format );
1.5 glBindTexture( GL_TEXTURE_2D, tex_id );
1.6 glTexSubImage2D( GL_TEXTURE_2D, 0, 0,0, frame->width, frame->height, GL_RGBA, type, tmp );
1.7 - gl_check_error("gl_load_frame_buffer:glTexSubImage2DBGRA");
1.8 + gl_check_error("gl_frame_buffer_to_tex:glTexSubImage2DBGRA");
1.9 }
1.10
1.11 #else
1.12 @@ -480,7 +480,7 @@
1.13 }
1.14 #endif
1.15
1.16 -static void gl_load_frame_buffer( frame_buffer_t frame, render_buffer_t render )
1.17 +void gl_load_frame_buffer( frame_buffer_t frame, render_buffer_t render )
1.18 {
1.19 gl_frame_buffer_to_tex( frame, render->tex_id );
1.20 }
.