mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 22:13:25 -10:00
Remove unused parameters of StoreStaticAttrib
The parameters count and instances in VertexDataManager::StoreStaticAttrib are never used in the function body. So this patch will remove them. BUG=none Change-Id: Ic3fe21ae50e5016145bfd0c78542540c8ec76fd2 Reviewed-on: https://chromium-review.googlesource.com/445337 Commit-Queue: Jamie Madill <[email protected]> Reviewed-by: Yunchao He <[email protected]> Reviewed-by: Jamie Madill <[email protected]>
This commit is contained in:
1 parent
308d745d8e
commit
cde4f024e2
3 files changed
+4
-9
No files matched your search
@@ -256,7 +256,7 @@ gl::Error VertexDataManager::prepareVertexData(const gl::State &state,
|
||||
case VertexStorageType::STATIC:
|
||||
{
|
||||
// Store static attribute.
|
||||
ANGLE_TRY(StoreStaticAttrib(translated, count, instances));
|
||||
ANGLE_TRY(StoreStaticAttrib(translated));
|
||||
break;
|
||||
}
|
||||
case VertexStorageType::DYNAMIC:
|
||||
@@ -313,9 +313,7 @@ void VertexDataManager::StoreDirectAttrib(TranslatedAttribute *directAttrib)
|
||||
}
|
||||
|
||||
// static
|
||||
gl::Error VertexDataManager::StoreStaticAttrib(TranslatedAttribute *translated,
|
||||
GLsizei count,
|
||||
GLsizei instances)
|
||||
gl::Error VertexDataManager::StoreStaticAttrib(TranslatedAttribute *translated)
|
||||
{
|
||||
const auto &attrib = *translated->attribute;
|
||||
const auto &binding = *translated->binding;
|
||||
|
||||
@@ -95,9 +95,7 @@ class VertexDataManager : angle::NonCopyable
|
||||
|
||||
static void StoreDirectAttrib(TranslatedAttribute *directAttrib);
|
||||
|
||||
static gl::Error StoreStaticAttrib(TranslatedAttribute *translated,
|
||||
GLsizei count,
|
||||
GLsizei instances);
|
||||
static gl::Error StoreStaticAttrib(TranslatedAttribute *translated);
|
||||
|
||||
gl::Error storeDynamicAttribs(std::vector<TranslatedAttribute> *translatedAttribs,
|
||||
const gl::AttributesMask &dynamicAttribsMask,
|
||||
|
||||
@@ -165,8 +165,7 @@ gl::Error VertexArray11::updateDirtyAndDynamicAttribs(VertexDataManager *vertexD
|
||||
break;
|
||||
case VertexStorageType::STATIC:
|
||||
{
|
||||
ANGLE_TRY(
|
||||
VertexDataManager::StoreStaticAttrib(translatedAttrib, count, instances));
|
||||
ANGLE_TRY(VertexDataManager::StoreStaticAttrib(translatedAttrib));
|
||||
break;
|
||||
}
|
||||
case VertexStorageType::CURRENT_VALUE:
|
||||
|
||||
Reference in new issue
Block a user