comparison src/video/SDL_renderer_gl.c @ 3440:e9502d56ae94

Added missing return values
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Nov 2009 06:50:29 +0000
parents 9f62f47d989b
children 7f477a22dff5
comparison
equal deleted inserted replaced
3439:0acec8c9f5c9 3440:e9502d56ae94
1290 SDL_memcpy(tmp, dst, length); 1290 SDL_memcpy(tmp, dst, length);
1291 SDL_memcpy(dst, src, length); 1291 SDL_memcpy(dst, src, length);
1292 SDL_memcpy(src, tmp, length); 1292 SDL_memcpy(src, tmp, length);
1293 } 1293 }
1294 SDL_stack_free(tmp); 1294 SDL_stack_free(tmp);
1295
1296 return 0;
1295 } 1297 }
1296 1298
1297 static int 1299 static int
1298 GL_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect, 1300 GL_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect,
1299 Uint32 pixel_format, const void * pixels, int pitch) 1301 Uint32 pixel_format, const void * pixels, int pitch)
1319 data->glPixelStorei(GL_UNPACK_ROW_LENGTH, 1321 data->glPixelStorei(GL_UNPACK_ROW_LENGTH,
1320 (pitch / bytes_per_pixel(pixel_format))); 1322 (pitch / bytes_per_pixel(pixel_format)));
1321 1323
1322 data->glReadPixels(rect->x, rect->y+rect->h-1, rect->w, rect->h, 1324 data->glReadPixels(rect->x, rect->y+rect->h-1, rect->w, rect->h,
1323 format, type, pixels); 1325 format, type, pixels);
1326
1327 return 0;
1324 } 1328 }
1325 1329
1326 static void 1330 static void
1327 GL_RenderPresent(SDL_Renderer * renderer) 1331 GL_RenderPresent(SDL_Renderer * renderer)
1328 { 1332 {