Init VESA only if necessary

This commit is contained in:
Baptiste Wicht 2014-02-06 21:16:05 +01:00
parent 6feae8af83
commit b94f9d46bd

View File

@ -50,7 +50,7 @@ void kernel_main(){
disks::detect_disks();
//Try to init VESA
if(!vesa::init()){
if(vesa::vesa_enabled && !vesa::init()){
vesa::vesa_enabled = false;
//Unfortunately, we are in long mode, we cannot go back