Skip to content

Commit 1c2a586

Browse files
authored
Merge pull request #8399 from NickHardeman/bugfix-cubemap-regenTexs
ofCubeMap: Android define around regenerateAllTextures()
2 parents 3440022 + 2028682 commit 1c2a586

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libs/openFrameworks/gl/ofCubeMap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ void ofCubeMap::_createIrradianceMap(GLuint aSrcCubeFid, bool aBMakeCache, const
855855
std::vector<glm::mat4> views = _getViewMatrices( glm::vec3(0,0,0) );
856856

857857
if( !shaderIrradianceMap.isLoaded() ) {
858-
auto isource = ofCubeMapShaders::irriadianceCubeMap();
858+
auto isource = ofCubeMapShaders::irradianceCubeMap();
859859
shaderIrradianceMap.setupShaderFromSource(GL_VERTEX_SHADER, isource.vertShader );
860860
shaderIrradianceMap.setupShaderFromSource(GL_FRAGMENT_SHADER, isource.fragShader );
861861
shaderIrradianceMap.bindDefaults();

libs/openFrameworks/gl/ofCubeMap.h

+2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ class ofCubeMap {
6363
static bool hasActiveCubeMap();
6464
static std::shared_ptr<ofCubeMap::Data> getActiveData();
6565
static void clearTextureData(std::shared_ptr<ofCubeMap::Data> adata);
66+
#ifdef TARGET_ANDROID
6667
static void regenerateAllTextures();
68+
#endif
6769
static const ofTexture & getBrdfLutTexture();
6870

6971
ofCubeMap();

libs/openFrameworks/gl/ofCubeMapShaders.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ofCubeMapShaders {
103103
return rsource;
104104
}
105105

106-
static ShaderSource irriadianceCubeMap() {
106+
static ShaderSource irradianceCubeMap() {
107107
ShaderSource rsource;
108108
rsource.vertShader = defaultVertShader();
109109

0 commit comments

Comments
 (0)