Bug 1285086 - Turn on WebGLSampler. r=jgilbert

--HG--
extra : histedit_source : 9a788a293cbf8fc373c9bf7dbce7596f845e460d
This commit is contained in:
Ethan Lin 2016-07-21 07:31:00 -04:00
parent 4f45ea248f
commit 0931d35c4c

View File

@ -12,24 +12,15 @@ namespace mozilla {
already_AddRefed<WebGLSampler>
WebGL2Context::CreateSampler()
{
const char funcName[] = "createSampler";
if (IsContextLost())
return nullptr;
/*
GLuint sampler;
MakeContextCurrent();
gl->fGenSamplers(1, &sampler);
RefPtr<WebGLSampler> globj = new WebGLSampler(this, sampler);
return globj.forget();
*/
ErrorInvalidOperation("%s: Sampler objects are still under development, and are"
" currently disabled.",
funcName);
return nullptr;
}
void