Make renderer pointer const in load_asset_to_manager
This commit is contained in:
1 parent
e0d4e5b431
commit
475cd59e45
2 files changed
+2
-2
No files matched your search
@@ -35,7 +35,7 @@ AssetManager *create_asset_manager();
|
|||||||
* Returns the AssetID on success or an INVALID_ID in the case of failure.
|
* Returns the AssetID on success or an INVALID_ID in the case of failure.
|
||||||
*/
|
*/
|
||||||
AssetID load_asset_to_manager(AssetManager *am, const char *path,
|
AssetID load_asset_to_manager(AssetManager *am, const char *path,
|
||||||
AssetType type, Renderer *renderer);
|
AssetType type, const Renderer *renderer);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes an asset from the manager using its ID.
|
* Removes an asset from the manager using its ID.
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@ AssetManager *create_asset_manager() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AssetID load_asset_to_manager(AssetManager *am, const char *path,
|
AssetID load_asset_to_manager(AssetManager *am, const char *path,
|
||||||
AssetType type, Renderer *renderer) {
|
AssetType type, const Renderer *renderer) {
|
||||||
if (!am || type == ASSET_TYPE_COUNT) {
|
if (!am || type == ASSET_TYPE_COUNT) {
|
||||||
return INVALID_ID;
|
return INVALID_ID;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user