fill in the texture_setimage function, fill in a few other functions, and change certain names to be a little more consistent

This commit is contained in:
jp9000
2013-10-25 10:25:28 -07:00
parent 603b262d4c
commit a43e291577
18 changed files with 154 additions and 60 deletions

View File

@@ -179,7 +179,7 @@ enum gs_color_format stagesurface_getcolorformat(stagesurf_t stagesurf)
}
bool stagesurface_map(stagesurf_t stagesurf, const void **data,
uint32_t *byte_width)
uint32_t *row_bytes)
{
if (!gl_bind_buffer(GL_PIXEL_PACK_BUFFER, stagesurf->pack_buffer))
goto fail;
@@ -190,7 +190,7 @@ bool stagesurface_map(stagesurf_t stagesurf, const void **data,
gl_bind_buffer(GL_PIXEL_PACK_BUFFER, 0);
*byte_width = stagesurf->bytes_per_pixel * stagesurf->width;
*row_bytes = stagesurf->bytes_per_pixel * stagesurf->width;
return true;
fail: