mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 02:40:06 +00:00
Make sure RadarProductView usage is consistent
This commit is contained in:
parent
95de37cab4
commit
b2fbfa0dee
1 changed files with 6 additions and 5 deletions
|
|
@ -154,8 +154,10 @@ void RadarProductLayer::UpdateSweep()
|
||||||
|
|
||||||
boost::timer::cpu_timer timer;
|
boost::timer::cpu_timer timer;
|
||||||
|
|
||||||
const std::vector<float>& vertices =
|
std::shared_ptr<view::RadarProductView> radarProductView =
|
||||||
context()->radarProductView_->vertices();
|
context()->radarProductView_;
|
||||||
|
|
||||||
|
const std::vector<float>& vertices = radarProductView->vertices();
|
||||||
|
|
||||||
// Bind a vertex array object
|
// Bind a vertex array object
|
||||||
gl.glBindVertexArray(p->vao_);
|
gl.glBindVertexArray(p->vao_);
|
||||||
|
|
@ -180,8 +182,7 @@ void RadarProductLayer::UpdateSweep()
|
||||||
size_t componentSize;
|
size_t componentSize;
|
||||||
GLenum type;
|
GLenum type;
|
||||||
|
|
||||||
std::tie(data, dataSize, componentSize) =
|
std::tie(data, dataSize, componentSize) = radarProductView->GetMomentData();
|
||||||
context()->radarProductView_->GetMomentData();
|
|
||||||
|
|
||||||
if (componentSize == 1)
|
if (componentSize == 1)
|
||||||
{
|
{
|
||||||
|
|
@ -209,7 +210,7 @@ void RadarProductLayer::UpdateSweep()
|
||||||
GLenum cfpType;
|
GLenum cfpType;
|
||||||
|
|
||||||
std::tie(cfpData, cfpDataSize, cfpComponentSize) =
|
std::tie(cfpData, cfpDataSize, cfpComponentSize) =
|
||||||
context()->radarProductView_->GetCfpMomentData();
|
radarProductView->GetCfpMomentData();
|
||||||
|
|
||||||
if (cfpData != nullptr)
|
if (cfpData != nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue