Browse Source

image: fix bug introduced in Image::Lock2D().

undefined
Sam Hocevar 10 years ago
parent
commit
e2f53bb71a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/image/image.cpp

+ 2
- 0
src/image/image.cpp View File

@@ -199,6 +199,8 @@ template<PixelFormat T> typename PixelType<T>::type *Image::Lock()
/* The Lock2D() method */ /* The Lock2D() method */
void *Image::Lock2DHelper(PixelFormat T) void *Image::Lock2DHelper(PixelFormat T)
{ {
SetFormat(T);

return m_data->m_pixels[(int)T]->Data2D(); return m_data->m_pixels[(int)T]->Data2D();
} }




Loading…
Cancel
Save