[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 WebGLRenderingContext]


Thread replies: 6
Thread images: 1

File: Capture.png (3KB, 763x23px) Image search: [Google] [Yandex] [Bing]
Capture.png
3KB, 763x23px
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
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK