Changeset 322 for trunk/src


Ignore:
Timestamp:
08/25/14 04:27:26 (11 years ago)
Author:
epyon
Message:
  • profiler control via define/NV_DEBUG
  • weird RELEASE mode audio error - need to investigate
  • fixed - render_state in RELEASE mode would not set depth_mask!
Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/gui_renderer.cc

    r319 r322  
    1111#include "nv/interface/device.hh"
    1212#include "nv/interface/context.hh"
     13#include "nv/core/logging.hh"
    1314
    1415static const char *nv_gui_vertex_shader =
     
    123124        , m_reupload( true )
    124125{
     126        NV_LOG( LOG_TRACE, "Creating GUI renderer..." );
    125127        m_context = w->get_context();
    126128        m_area.dim( dimension( w->get_width(), w->get_height() ) );
     
    133135        delete[] wfill;
    134136
     137        NV_LOG( LOG_TRACE, "Creating render data..." );
    135138        screen_render_data* sr = new screen_render_data( w->get_context(), 1024 );
    136139        m_render_data = sr;
     
    152155        m_render_state.blending.src_alpha_factor = blending::SRC_ALPHA;
    153156        m_render_state.blending.dst_alpha_factor = blending::ONE_MINUS_SRC_ALPHA;
     157        NV_LOG( LOG_TRACE, "GUI Renderer created" );
    154158}
    155159
  • trunk/src/sdl/sdl_audio.cc

    r319 r322  
    4343nv::sound* nv::sdl::audio::load_sound( const std::string& a_path )
    4444{
    45         Mix_Chunk *sample = Mix_LoadWAV( a_path.c_str() );
     45        // TODO: this is a really wierd error - if we remove this check, all hell gets loose
     46        if ( Mix_LoadWAV_RW == nullptr || SDL_RWFromFile == nullptr )
     47        {
     48                NV_LOG( LOG_ERROR, "SDL_mixer not loaded!" );
     49        }
     50        Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path.c_str(), "rb"), 1);
    4651        if ( sample == nullptr )
    4752        {
Note: See TracChangeset for help on using the changeset viewer.