mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
- more cppcheck code cleanup
This commit is contained in:
@@ -26,6 +26,9 @@ namespace Shared{ namespace Graphics{ namespace Gl{
|
||||
|
||||
ShaderProgramGl::ShaderProgramGl(){
|
||||
inited= false;
|
||||
vertexShader=0;
|
||||
fragmentShader=0;
|
||||
handle=0;
|
||||
}
|
||||
|
||||
void ShaderProgramGl::init(){
|
||||
@@ -173,6 +176,7 @@ GLint ShaderProgramGl::getLocation(const string &name){
|
||||
|
||||
ShaderGl::ShaderGl(){
|
||||
inited= false;
|
||||
handle = 0;
|
||||
}
|
||||
|
||||
void ShaderGl::load(const string &path){
|
||||
|
@@ -26,6 +26,9 @@ namespace Shared{ namespace Graphics{ namespace Gl{
|
||||
|
||||
ShaderProgramGl::ShaderProgramGl(){
|
||||
inited= false;
|
||||
vertexShader=0;
|
||||
fragmentShader=0;
|
||||
handle=0;
|
||||
}
|
||||
|
||||
void ShaderProgramGl::init(){
|
||||
@@ -167,6 +170,7 @@ GLint ShaderProgramGl::getLocation(const string &name){
|
||||
|
||||
ShaderGl::ShaderGl(){
|
||||
inited= false;
|
||||
handle = 0;
|
||||
}
|
||||
|
||||
void ShaderGl::load(const string &path){
|
||||
|
@@ -136,6 +136,7 @@ ALenum SoundSource::getFormat(Sound* sound)
|
||||
|
||||
StaticSoundSource::StaticSoundSource() {
|
||||
bufferAllocated = false;
|
||||
buffer = 0;
|
||||
}
|
||||
|
||||
StaticSoundSource::~StaticSoundSource() {
|
||||
@@ -179,6 +180,8 @@ void StaticSoundSource::play(StaticSound* sound) {
|
||||
StreamSoundSource::StreamSoundSource()
|
||||
{
|
||||
sound = 0;
|
||||
fadeState = NoFading;
|
||||
format = 0;
|
||||
alGenBuffers(STREAMFRAGMENTS, buffers);
|
||||
SoundPlayerOpenAL::checkAlError(string(__FILE__) + string(" ") + string(__FUNCTION__) + string(" ") + intToStr(__LINE__));
|
||||
}
|
||||
@@ -331,6 +334,7 @@ SoundPlayerOpenAL::SoundPlayerOpenAL() {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSound).enabled) SystemFlags::OutputDebug(SystemFlags::debugSound,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
device = 0;
|
||||
context = 0;
|
||||
initOk = false;
|
||||
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSound).enabled) SystemFlags::OutputDebug(SystemFlags::debugSound,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
@@ -40,6 +40,7 @@ SoundInfo::SoundInfo() {
|
||||
Sound::Sound() {
|
||||
volume= 0.0f;
|
||||
fileName = "";
|
||||
soundFileLoader = 0;
|
||||
}
|
||||
|
||||
// =====================================================
|
||||
|
Reference in New Issue
Block a user