OSDN Git Service

Use stride for source and target buffers when copybit is enabled.
authorMathias Palmqvist <mathias.palmqvist@sonyericsson.com>
Wed, 2 Jun 2010 14:03:04 +0000 (16:03 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:05:33 +0000 (16:05 +0800)
Change-Id: Ie651013b3522f8e004685d74190da86433086307

opengl/libagl/egl.cpp

index 662a1fa..5c09dcc 100644 (file)
@@ -480,13 +480,13 @@ void egl_window_surface_v2_t::copyBlt(
     copybit_device_t* const copybit = blitengine;
     if (copybit)  {
         copybit_image_t simg;
-        simg.w = src->width;
+        simg.w = src->stride;
         simg.h = src->height;
         simg.format = src->format;
         simg.handle = const_cast<native_handle_t*>(src->handle);
 
         copybit_image_t dimg;
-        dimg.w = dst->width;
+        dimg.w = dst->stride;
         dimg.h = dst->height;
         dimg.format = dst->format;
         dimg.handle = const_cast<native_handle_t*>(dst->handle);