Skip to content

Commit

Permalink
Filled-in glCopyTexSubImage{1,3}D.
Browse files Browse the repository at this point in the history
  • Loading branch information
gzorin committed Apr 14, 2012
1 parent 33d44cd commit 7a6aa08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/textures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y
rsxgl_context_t * ctx = current_ctx();
texture_t & texture = ctx -> texture_binding[ctx -> active_texture];

//rsxgl_tex_subimage(ctx,texture,level,xoffset,0,0,width,1,1,format,type,pixels);
rsxgl_copy_tex_subimage(ctx,texture,level,xoffset,0,0,x,y,width,1);
}

GLAPI void APIENTRY
Expand All @@ -1983,7 +1983,7 @@ glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, G
rsxgl_context_t * ctx = current_ctx();
texture_t & texture = ctx -> texture_binding[ctx -> active_texture];

//rsxgl_tex_subimage(ctx,texture,level,xoffset,0,0,width,1,1,format,type,pixels);
rsxgl_copy_tex_subimage(ctx,texture,level,xoffset,yoffset,zoffset,x,y,width,height);
}

GLAPI void APIENTRY
Expand Down

0 comments on commit 7a6aa08

Please sign in to comment.