mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 1285086 - Turn on WebGLSampler. r=jgilbert
--HG-- extra : histedit_source : 9a788a293cbf8fc373c9bf7dbce7596f845e460d
This commit is contained in:
parent
4f45ea248f
commit
0931d35c4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user