equal
deleted
inserted
replaced
517 end; |
517 end; |
518 end; |
518 end; |
519 {$ENDIF} |
519 {$ENDIF} |
520 |
520 |
521 {$IFDEF GL2} |
521 {$IFDEF GL2} |
522 |
|
523 {$IFDEF PAS2C} |
|
524 if glewInit() <> GLEW_OK then |
|
525 begin |
|
526 WriteLnToConsole('Failed to initialize GLEW.'); |
|
527 halt(HaltStartupError); |
|
528 end; |
|
529 {$ENDIF} |
|
530 |
522 |
531 {$IFNDEF PAS2C} |
523 {$IFNDEF PAS2C} |
532 if not Load_GL_VERSION_2_0 then |
524 if not Load_GL_VERSION_2_0 then |
533 begin |
525 begin |
534 WriteLnToConsole('Load_GL_VERSION_2_0 returned false!'); |
526 WriteLnToConsole('Load_GL_VERSION_2_0 returned false!'); |