From cfa083a5df690a8a09570ea49886c403d54778e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Sun, 6 Dec 2015 22:50:06 +0100 Subject: [PATCH] Android: Fix GLData to parse width and height even if not Int --- android/rngl.iml | 108 ------------------ .../com/projectseptember/RNGL/GLData.java | 4 +- 2 files changed, 2 insertions(+), 110 deletions(-) delete mode 100644 android/rngl.iml diff --git a/android/rngl.iml b/android/rngl.iml deleted file mode 100644 index 8632d38..0000000 --- a/android/rngl.iml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/android/src/main/java/com/projectseptember/RNGL/GLData.java b/android/src/main/java/com/projectseptember/RNGL/GLData.java index c0c0420..61ad242 100644 --- a/android/src/main/java/com/projectseptember/RNGL/GLData.java +++ b/android/src/main/java/com/projectseptember/RNGL/GLData.java @@ -37,8 +37,8 @@ public class GLData { public static GLData fromMap (ReadableMap map) { Integer shader = map.getInt("shader"); ReadableMap uniforms = map.getMap("uniforms"); - Integer width = map.getInt("width"); - Integer height = map.getInt("height"); + Integer width = (int) map.getDouble("width"); + Integer height = (int) map.getDouble("height"); Integer fboId = map.getInt("fboId"); List children = fromArray(map.getArray("children")); List contextChildren = fromArray(map.getArray("contextChildren")); -- 2.26.2