X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bab9aa28dabd3db5d8a380121779dfadd76a7625..3678169caab0f713415414dce013a638305f3cce:/src/osx/core/glgrab.cpp?ds=inline diff --git a/src/osx/core/glgrab.cpp b/src/osx/core/glgrab.cpp index 83aec47665..669f2ba6c4 100644 --- a/src/osx/core/glgrab.cpp +++ b/src/osx/core/glgrab.cpp @@ -115,7 +115,6 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect) void * data; long bytewidth; GLint width, height; - long bytes; CGLContextObj glContextObj; CGLPixelFormatObj pixelFormatObj ; @@ -157,7 +156,6 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect) bytewidth = width * 4; // Assume 4 bytes/pixel for now bytewidth = (bytewidth + 3) & ~3; // Align to 4 bytes - bytes = bytewidth * height; // width * height /* Build bitmap context */ data = malloc(height * bytewidth);