Skip to content

Commit

Permalink
Haiku: Fix check of bitmap size.
Browse files Browse the repository at this point in the history
* We now have basic Gallium software rendering!
* Still lots more work to do.
  • Loading branch information
kallisti5 committed Dec 10, 2012
1 parent ad99f88 commit 1d95a50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/add-ons/opengl/swpipe/SoftwareRenderer.cpp
Expand Up @@ -174,9 +174,10 @@ SoftwareRenderer::SwapBuffers(bool vsync)

// check the bitmap size still matches the size
if (fInfo->window_bounds.bottom - fInfo->window_bounds.top
!= fBitmap->Bounds().IntegerHeight() + 1
!= fBitmap->Bounds().IntegerHeight()
|| fInfo->window_bounds.right - fInfo->window_bounds.left
!= fBitmap->Bounds().IntegerWidth() + 1) {
!= fBitmap->Bounds().IntegerWidth()) {
ERROR("%s: Bitmap size doesn't match size!\n", __func__);
return;
}
uint8 bytesPerPixel = fInfo->bits_per_pixel / 8;
Expand Down

0 comments on commit 1d95a50

Please sign in to comment.