[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
How do I solve this error? Argument 1 in this case is [object
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 6
Thread images: 1
File: Capture.png (3 KB, 763x23) Image search: [Google]
Capture.png
3 KB, 763x23
How do I solve this error?

Argument 1 in this case is [object WebGLRenderingContext]
>>
well i know nuthin about this framework, but i just took a look at the online doco for the function compileShader.

the error message seems quite clear, compileShader takes one argument. that one argument must implement the WbGlShader interface and whatever you're trying to pass in doesnt.

therefore prove this to yourself, pass in something else which you know does.

the page i'm looking at has this example...

var shader = gl.createShader(gl.VERTEX_SHADER);

gl.shaderSource(shader, shaderSource);

gl.compileShader(shader);

does that help?
>>
>>55199968
Not sure if it helps, but it definitely confuses me because I thought compileShader took three arguments.
>>
>>55200376

>adding to the confusion
>helping
>>
>>55200426
>everyone on 4chan owes me
>>
https://www.youtube.com/watch?v=ppNZoEOr0zs&list=WL&index=9

you're welcome.
Thread replies: 6
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.