add FBOs and render target loading

This commit is contained in:
jp9000
2013-10-12 16:28:10 -07:00
parent 83ddb920a1
commit e591256922
6 changed files with 262 additions and 8 deletions

View File

@@ -126,8 +126,8 @@ void device_stage_texture(device_t device, stagesurf_t dst, texture_t src)
if (!can_stage(dst, tex2d))
goto failed;
if (!gl_copy_texture(device, tex2d->base.texture, GL_TEXTURE_2D,
dst->texture, GL_TEXTURE_2D,
if (!gl_copy_texture(device, dst->texture, GL_TEXTURE_2D,
tex2d->base.texture, GL_TEXTURE_2D,
dst->width, dst->height))
goto failed;