Commit 354af388 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

Fix image load

parent 9373cdaf
...@@ -19,7 +19,7 @@ const Tests = React.createClass({ ...@@ -19,7 +19,7 @@ const Tests = React.createClass({
<HelloGL width={64} height={64} />; <HelloGL width={64} height={64} />;
const txt = const txt =
<View style={{ width: 800, height: 800, position: "relative" }}> <View style={{ width: 800, height: 800, position: "relative", backgroundColor: "transparent" }}>
{[0,1,2,3].map(i => <Text style={{ {[0,1,2,3].map(i => <Text style={{
position: "absolute", position: "absolute",
top: 40+200*i, top: 40+200*i,
......
...@@ -144,7 +144,7 @@ NSString* srcResource (id res) ...@@ -144,7 +144,7 @@ NSString* srcResource (id res)
} }
if (image == nil) { if (image == nil) {
image = [[GLImage alloc] initWithBridge:_bridge withOnLoad:^{ image = [[GLImage alloc] initWithBridge:_bridge withOnLoad:^{
[self setNeedsDisplay]; [self requestSyncData];
}]; }];
image.src = src; image.src = src;
images[src] = image; images[src] = image;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment