start checking all instance functions
This commit is contained in:
@@ -8,13 +8,23 @@ gnReturnCode gnCreateInstance(gnInstanceHandle* instance, gnInstanceInfo info) {
|
||||
|
||||
(*instance)->layers = loaderLayerArrayListCreate();
|
||||
|
||||
// load the API layers (this will)
|
||||
loaderInfo loadInfo = {
|
||||
loaderLayerArrayListAdd(&(*instance)->layers, loadLayer((loaderInfo){
|
||||
.api = info.renderingAPI,
|
||||
.layerToLoad = api_layer
|
||||
};
|
||||
}));
|
||||
|
||||
loaderLayerArrayListAdd(&(*instance)->layers, loadLayer(loadInfo));
|
||||
loaderLayerArrayListAdd(&(*instance)->layers, loadLayer((loaderInfo){
|
||||
.api = info.renderingAPI,
|
||||
.layerToLoad = function_checker_layer
|
||||
}));
|
||||
|
||||
loaderLayerArrayListAdd(&(*instance)->layers, loadLayer((loaderInfo){
|
||||
.api = info.renderingAPI,
|
||||
.layerToLoad = function_checker_layer
|
||||
}));
|
||||
|
||||
(*instance)->currentLayer = ((*instance)->layers.count - 1);
|
||||
for (int i = 0; i < (*instance)->layers.count; i++) (*instance)->layers.data[i].layerIndex = i;
|
||||
|
||||
// i hate this line of code but im not fixing it
|
||||
(*instance)->callingLayer = &(*instance)->layers.data[(*instance)->layers.count - 1];
|
||||
|
Reference in New Issue
Block a user