fix for windows render context