-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support HTML elements as textures when DOM/canvas are available #87
Conversation
7286c51
to
e807bbc
Compare
} | ||
} | ||
|
||
if (context !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this if
should be moved inside the previous if
where the context variable is defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gre Whoops, quite right. Originally I had the context
variable declaration outside the outer if
statement but moved it just before submitting the pull request.
Force push incoming...
e807bbc
to
94ccafc
Compare
@mikolalysenko what do you think of this feature? should we merge this? I think it's great for more interoperability stuff, I actually need it for some tests :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will force push shortly.
var context = null | ||
|
||
if (typeof pixels.getContext === 'function') { | ||
context = canvas.getContext('2d') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, don't merge yet.
This should be pixels
not canvas
on this line.
94ccafc
to
d641e79
Compare
Alright just force pushed a fix. |
Sorry for not reviewing this sooner. Looks good to me! |
Could someone publish a new version for this so we don't have to reference git? |
No description provided.