X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Finternal%2Frender%2Fshaders%2Fprogram.cpp;h=451de0bb6c7083eeccb9bf7e90e73e82b30a29c9;hp=530b6292a8d4dac82d4a362256724736cb25779d;hb=0643c768fd100bd7ffb522e3358b88d075bc1d2e;hpb=9822303ce87b5133249686ab49f72d2f354fe932 diff --git a/dali/internal/render/shaders/program.cpp b/dali/internal/render/shaders/program.cpp old mode 100755 new mode 100644 index 530b629..451de0b --- a/dali/internal/render/shaders/program.cpp +++ b/dali/internal/render/shaders/program.cpp @@ -248,7 +248,7 @@ void Program::GetActiveSamplerUniforms() mGlAbstraction.GetProgramiv( mProgramId, GL_ACTIVE_UNIFORM_MAX_LENGTH, &uniformMaxNameLength ); std::vector samplerNames; - std::vector name(uniformMaxNameLength + 1); // Allow for null terminator + char name[uniformMaxNameLength+1]; // Allow for null terminator std::vector< LocationPosition > samplerUniformLocations; { @@ -259,12 +259,12 @@ void Program::GetActiveSamplerUniforms() for( int i=0; i( i ), uniformMaxNameLength, - &nameLength, &number, &type, name.data() ); + &nameLength, &number, &type, name ); if( type == GL_SAMPLER_2D || type == GL_SAMPLER_CUBE || type == GL_SAMPLER_EXTERNAL_OES ) { - GLuint location = mGlAbstraction.GetUniformLocation( mProgramId, name.data() ); - samplerNames.push_back( name.data() ); + GLuint location = mGlAbstraction.GetUniformLocation( mProgramId, name ); + samplerNames.push_back(name); samplerUniformLocations.push_back(LocationPosition(location, -1)); } }