зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1376399 - Hard crash in FF 54 and Nightly 56 on Windows 7 - r=jgilbert
This commit is contained in:
Родитель
bcad9663ab
Коммит
0e114d9e16
|
@ -151,7 +151,7 @@ gl::Error Context11::finish()
|
|||
|
||||
gl::Error Context11::drawArrays(GLenum mode, GLint first, GLsizei count)
|
||||
{
|
||||
return mRenderer->genericDrawArrays(this, mode, first, count, 0);
|
||||
return mRenderer->genericDrawArrays(this, mode, first, count, 1);
|
||||
}
|
||||
|
||||
gl::Error Context11::drawArraysInstanced(GLenum mode,
|
||||
|
@ -168,7 +168,7 @@ gl::Error Context11::drawElements(GLenum mode,
|
|||
const GLvoid *indices,
|
||||
const gl::IndexRange &indexRange)
|
||||
{
|
||||
return mRenderer->genericDrawElements(this, mode, count, type, indices, 0, indexRange);
|
||||
return mRenderer->genericDrawElements(this, mode, count, type, indices, 1, indexRange);
|
||||
}
|
||||
|
||||
gl::Error Context11::drawElementsInstanced(GLenum mode,
|
||||
|
@ -189,7 +189,7 @@ gl::Error Context11::drawRangeElements(GLenum mode,
|
|||
const GLvoid *indices,
|
||||
const gl::IndexRange &indexRange)
|
||||
{
|
||||
return mRenderer->genericDrawElements(this, mode, count, type, indices, 0, indexRange);
|
||||
return mRenderer->genericDrawElements(this, mode, count, type, indices, 1, indexRange);
|
||||
}
|
||||
|
||||
GLenum Context11::getResetStatus()
|
||||
|
|
|
@ -759,7 +759,7 @@ void GL_APIENTRY DrawArrays(GLenum mode, GLint first, GLsizei count)
|
|||
Context *context = GetValidGlobalContext();
|
||||
if (context)
|
||||
{
|
||||
if (!ValidateDrawArrays(context, mode, first, count, 0))
|
||||
if (!ValidateDrawArrays(context, mode, first, count, 1))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -782,7 +782,7 @@ void GL_APIENTRY DrawElements(GLenum mode, GLsizei count, GLenum type, const GLv
|
|||
if (context)
|
||||
{
|
||||
IndexRange indexRange;
|
||||
if (!ValidateDrawElements(context, mode, count, type, indices, 0, &indexRange))
|
||||
if (!ValidateDrawElements(context, mode, count, type, indices, 1, &indexRange))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче