Merge pull request #28532 from BastiaanOlij/fix_gdnative_notify

Forgot a parameter in the ARVR gdnative bindings for notifications
This commit is contained in:
Rémi Verschelde 2019-04-30 14:00:59 +02:00 committed by GitHub
commit 58531a9a0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -227,7 +227,7 @@ void ARVRInterfaceGDNative::notification(int p_what) {
// this is only available in interfaces that implement 1.1 or later
if ((interface->version.major > 1) || ((interface->version.major == 1) && (interface->version.minor > 0))) {
interface->notification(p_what);
interface->notification(data, p_what);
}
}

View file

@ -63,7 +63,7 @@ typedef struct {
void (*process)(void *);
// only in 1.1 onwards
godot_int (*get_external_texture_for_eye)(void *, godot_int);
void (*notification)(godot_int);
void (*notification)(void *, godot_int);
} godot_arvr_interface_gdnative;
void GDAPI godot_arvr_register_interface(const godot_arvr_interface_gdnative *p_interface);