update cached HW acceleration flags on mode changes. Fixes HW acc on ATI after Axels changes. Axel, is it working on Matrox as well now?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13180 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1206,6 +1206,8 @@ DisplayDriverPainter::SetMode(const display_mode &mode)
|
|||||||
status = fGraphicsCard->SetMode(mode);
|
status = fGraphicsCard->SetMode(mode);
|
||||||
if (status >= B_OK) {
|
if (status >= B_OK) {
|
||||||
fPainter->AttachToBuffer(fGraphicsCard->DrawingBuffer());
|
fPainter->AttachToBuffer(fGraphicsCard->DrawingBuffer());
|
||||||
|
// available HW acceleration might have changed
|
||||||
|
fAvailableHWAccleration = fGraphicsCard->AvailableHWAcceleration();
|
||||||
status = DisplayDriver::SetMode(mode);
|
status = DisplayDriver::SetMode(mode);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "DisplayDriverPainter::SetMode() - unsupported "
|
fprintf(stderr, "DisplayDriverPainter::SetMode() - unsupported "
|
||||||
|
|||||||
Reference in New Issue
Block a user