Skip to content
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

Merged
merged 1 commit into from
Dec 7, 2017

Conversation

Benjamin-Dobell
Copy link

No description provided.

}
}

if (context !== null) {
Copy link
Member

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?

Copy link
Author

@Benjamin-Dobell Benjamin-Dobell Oct 31, 2016

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...

@gre
Copy link
Member

gre commented Nov 1, 2016

@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 :)

Copy link
Author

@Benjamin-Dobell Benjamin-Dobell left a 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')
Copy link
Author

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.

@Benjamin-Dobell
Copy link
Author

Alright just force pushed a fix.

@regou
Copy link

regou commented Dec 7, 2017

This pr works so well and solve many canvas based texture issues but never get merged. Why?
@substack @mourner @gre
#45

@mourner mourner merged commit 412f16e into stackgl:master Dec 7, 2017
@mourner
Copy link
Collaborator

mourner commented Dec 7, 2017

Sorry for not reviewing this sooner. Looks good to me!

@jhollingworth
Copy link

Could someone publish a new version for this so we don't have to reference git?

@dhritzkiv dhritzkiv mentioned this pull request Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants