Cannot call method "load Texture" of null

Bugs will be moved here once resolved.

Post » Sat Jun 29, 2013 4:03 am

Any idea what this is? Happened suddenly after updating to 136.
It references this line:

this.webGL_texture = this.runtime.glwrap.loadTexture(this.texture_img, true, this.runtime.linearSampling, this.texture_pixelformat);

(note that I'm not using WebGL)
    
B
30
S
9
G
6
Posts: 525
Reputation: 8,329

Post » Sat Jun 29, 2013 4:05 am

Ok found the culprit.
The file is particles_plugin, line:70

this.webGL_texture = this.runtime.glwrap.loadTexture(this.texture_img, true, this.runtime.linearSampling, this.texture_pixelformat);

This (nasty) bug happens if you switch off WebGL. Noticed it testing on Win8.

@Ashley is there a quick fix while waiting for the new version? I was about to publish an update..
B
30
S
9
G
6
Posts: 525
Reputation: 8,329

Post » Sat Jun 29, 2013 4:08 am

Sorry. Actually spent 20 seconds to check the code and I found the bug.

To fix:

sprite plugin, runtime.

Line:67

if (this.is_family || this.webGL_texture)

should be:

if (this.is_family || !this.webGL_texture)

Yo!
B
30
S
9
G
6
Posts: 525
Reputation: 8,329

Post » Sat Jun 29, 2013 4:17 am

Your report is missing a capx and basically all the informations of the template when you clicked the "New topic" button

[quote]Link to .capx file (required!):
http://

Steps to reproduce:
1.
2.
3.

Observed result:


Expected result:


Browsers affected:
Chrome: yes/no
Firefox: yes/no
Internet Explorer: yes/no

Operating system & service pack:

Construct 2 version:
[/quote]Kyatric2013-06-29 04:19:36
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,093

Post » Sat Jun 29, 2013 4:34 am

@Kyatric I also provided a fix..
B
30
S
9
G
6
Posts: 525
Reputation: 8,329

Post » Sat Jun 29, 2013 2:06 pm

Closing as duplicate of http://www.scirra.com/forum/r136-particles-bug-on-cocoonjs_topic69911.html, already fixed for next build.

(FWIW, your fix actually breaks the WebGL renderer!)Ashley2013-06-29 14:07:16
Scirra Founder
B
383
S
224
G
86
Posts: 24,117
Reputation: 190,432


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests