Переглянути джерело

Makes the external driver the driver with the second lowest priority.

Because the external driver allways registers a device even ther is no
device, all following drivers would never activated.
der-b 6 роки тому
батько
коміт
8b8a899c2a
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      src/openhmd.c

+ 4 - 4
src/openhmd.c

@@ -54,13 +54,13 @@ ohmd_context* OHMD_APIENTRY ohmd_ctx_create(void)
 	ctx->drivers[ctx->num_drivers++] = ohmd_create_xgvr_drv(ctx);
 #endif
 
-#if DRIVER_EXTERNAL
-	ctx->drivers[ctx->num_drivers++] = ohmd_create_external_drv(ctx);
-#endif
-
 #if DRIVER_ANDROID
 	ctx->drivers[ctx->num_drivers++] = ohmd_create_android_drv(ctx);
 #endif
+
+#if DRIVER_EXTERNAL
+	ctx->drivers[ctx->num_drivers++] = ohmd_create_external_drv(ctx);
+#endif
 	// add dummy driver last to make it the lowest priority
 	ctx->drivers[ctx->num_drivers++] = ohmd_create_dummy_drv(ctx);