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:
Stephan Aßmus 2005-06-16 15:10:24 +00:00
parent 54cc0f1b56
commit faaa62c751

View File

@ -1206,6 +1206,8 @@ DisplayDriverPainter::SetMode(const display_mode &mode)
status = fGraphicsCard->SetMode(mode);
if (status >= B_OK) {
fPainter->AttachToBuffer(fGraphicsCard->DrawingBuffer());
// available HW acceleration might have changed
fAvailableHWAccleration = fGraphicsCard->AvailableHWAcceleration();
status = DisplayDriver::SetMode(mode);
} else {
fprintf(stderr, "DisplayDriverPainter::SetMode() - unsupported "