@@ -39,7 +39,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3939
4040GLUBO materialsUBO ( " materials" , 6 , GL_MAP_WRITE_BIT, GL_MAP_INVALIDATE_RANGE_BIT );
4141GLBuffer texDataBuffer ( " texData" , 7 , GL_MAP_WRITE_BIT, GL_MAP_FLUSH_EXPLICIT_BIT );
42- GLUBO lightmapDataUBO ( " texData " , 8 , GL_MAP_WRITE_BIT, GL_MAP_FLUSH_EXPLICIT_BIT );
42+ GLUBO lightMapDataUBO ( " lightMapData " , 8 , GL_MAP_WRITE_BIT, GL_MAP_FLUSH_EXPLICIT_BIT );
4343
4444GLSSBO surfaceDescriptorsSSBO ( " surfaceDescriptors" , 1 , GL_MAP_WRITE_BIT, GL_MAP_INVALIDATE_RANGE_BIT );
4545GLSSBO surfaceCommandsSSBO ( " surfaceCommands" , 2 , GL_MAP_WRITE_BIT, GL_MAP_FLUSH_EXPLICIT_BIT );
@@ -595,10 +595,10 @@ void MaterialSystem::GenerateWorldCommandBuffer() {
595595 texDataBuffer.UnmapBuffer ();
596596 texDataBuffer.UnBindBuffer ( texDataBufferType );
597597
598- lightmapDataUBO .BindBuffer ();
599- lightmapDataUBO .BufferStorage ( MAX_LIGHTMAPS * LIGHTMAP_SIZE, 1 , nullptr );
600- lightmapDataUBO .MapAll ();
601- uint64_t * lightmapData = ( uint64_t * ) lightmapDataUBO .GetData ();
598+ lightMapDataUBO .BindBuffer ();
599+ lightMapDataUBO .BufferStorage ( MAX_LIGHTMAPS * LIGHTMAP_SIZE, 1 , nullptr );
600+ lightMapDataUBO .MapAll ();
601+ uint64_t * lightmapData = ( uint64_t * ) lightMapDataUBO .GetData ();
602602 memset ( lightmapData, 0 , MAX_LIGHTMAPS * LIGHTMAP_SIZE * sizeof ( uint32_t ) );
603603
604604 for ( uint32_t i = 0 ; i < tr.lightmaps .size (); i++ ) {
@@ -633,9 +633,9 @@ void MaterialSystem::GenerateWorldCommandBuffer() {
633633 lightmapData[255 * 2 + 1 ] = tr.blackImage ->texture ->bindlessTextureHandle ;
634634 }
635635
636- lightmapDataUBO .FlushAll ();
637- lightmapDataUBO .UnmapBuffer ();
638- lightmapDataUBO .UnBindBuffer ();
636+ lightMapDataUBO .FlushAll ();
637+ lightMapDataUBO .UnmapBuffer ();
638+ lightMapDataUBO .UnBindBuffer ();
639639
640640 surfaceCommandsCount = totalBatchCount * SURFACE_COMMANDS_PER_BATCH;
641641
@@ -1897,7 +1897,7 @@ void MaterialSystem::Free() {
18971897 culledCommandsBuffer.UnmapBuffer ();
18981898 atomicCommandCountersBuffer.UnmapBuffer ();
18991899 texDataBuffer.UnmapBuffer ();
1900- lightmapDataUBO .UnmapBuffer ();
1900+ lightMapDataUBO .UnmapBuffer ();
19011901
19021902 if ( totalPortals > 0 ) {
19031903 portalSurfacesSSBO.UnmapBuffer ();
@@ -2202,7 +2202,7 @@ void MaterialSystem::RenderMaterial( Material& material, const uint32_t viewID )
22022202 atomicCommandCountersBuffer.BindBuffer ( GL_PARAMETER_BUFFER_ARB );
22032203
22042204 texDataBuffer.BindBufferBase ( texDataBufferType );
2205- lightmapDataUBO .BindBufferBase ();
2205+ lightMapDataUBO .BindBufferBase ();
22062206
22072207 if ( r_showGlobalMaterials.Get () && material.sort != 0
22082208 && ( material.shaderBinder == BindShaderLightMapping || material.shaderBinder == BindShaderGeneric3D ) ) {
@@ -2319,7 +2319,7 @@ void MaterialSystem::RenderMaterial( Material& material, const uint32_t viewID )
23192319 atomicCommandCountersBuffer.UnBindBuffer ( GL_PARAMETER_BUFFER_ARB );
23202320
23212321 texDataBuffer.UnBindBufferBase ( texDataBufferType );
2322- lightmapDataUBO .UnBindBufferBase ();
2322+ lightMapDataUBO .UnBindBufferBase ();
23232323
23242324 if ( material.usePolygonOffset ) {
23252325 glDisable ( GL_POLYGON_OFFSET_FILL );
0 commit comments