зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1228949 - Fix WebGLBuffer content type when the target is LOCAL_GL_COPY_READ_BUFFER or LOCAL_GL_COPY_WRITE_BUFFER. r=jgilbert
This commit is contained in:
Родитель
0e56a625b2
Коммит
c257b89d86
|
@ -46,7 +46,9 @@ WebGLBuffer::BindTo(GLenum target)
|
|||
|
||||
case LOCAL_GL_COPY_READ_BUFFER:
|
||||
case LOCAL_GL_COPY_WRITE_BUFFER:
|
||||
/* Do nothing. Doesn't set the type of the buffer contents. */
|
||||
if (mContent == Kind::Undefined) {
|
||||
mContent = Kind::OtherData;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче