2 parents 6ede44b + 46acb04 commit 9c7d4d1Copy full SHA for 9c7d4d1
1 file changed
osu.Android/Native/vulkan_renderer.cpp
@@ -13,8 +13,9 @@
13
14
static JavaVM* g_vm = nullptr;
15
16
-jint JNI_OnLoad(JavaVM* vm, void* reserved) {
+JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
17
g_vm = vm;
18
+ LOGI("JNI_OnLoad called, JVM initialized");
19
return JNI_VERSION_1_6;
20
}
21
@@ -358,9 +359,8 @@ VkExtent2D VulkanRenderer::chooseSwapExtent(const VkSurfaceCapabilitiesKHR& capa
358
359
if (capabilities.currentExtent.width != UINT32_MAX) {
360
return capabilities.currentExtent;
361
} else {
- int width, height;
362
- ANativeWindow_getWidth(window);
363
- ANativeWindow_getHeight(window);
+ int width = ANativeWindow_getWidth(window);
+ int height = ANativeWindow_getHeight(window);
364
365
VkExtent2D actualExtent = {
366
static_cast<uint32_t>(width),
0 commit comments