Skip to content

Commit

Permalink
Adds error when main shader doesn't compile
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Nov 5, 2024
1 parent 0d07576 commit 0ecd977
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/__scribble_system/__scribble_system.gml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ function __scribble_initialize()
__scribble_trace("Verbose mode is off, set SCRIBBLE_VERBOSE to <true> to see more information");
}

if (not shader_is_compiled(__shd_scribble))
{
__scribble_error("Shader failed to compile. Please check your version of GameMaker is compatible\nPlease report this error if it persists");
}

if (not font_exists(asset_get_index("scribble_fallback_font")))
{
__scribble_error("Fallback font was not found. This may indicate that unused assets have been stripped from the project\nPlease untick \"Automatically remove unused assets when compiling\" in Game Options");
Expand Down

0 comments on commit 0ecd977

Please sign in to comment.