Ignore:
Timestamp:
10/10/08 13:53:22 (16 years ago)
Author:
mattausch
Message:

removed leaks. added class for shaders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3020 r3021  
    11// chcdemo.cpp : Defines the entry point for the console application. 
    22// 
     3 
     4 
     5#include "common.h" 
    36 
    47#ifdef _CRT_SET 
     
    69        #include <stdlib.h> 
    710        #include <crtdbg.h> 
    8 #endif 
    9  
    10 #include "common.h" 
    11  
    12 #ifdef _CRT_SET 
     11 
    1312        // redefine new operator 
    1413        #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) 
    1514        #define new DEBUG_NEW 
    1615#endif 
    17  
    1816 
    1917#include <math.h> 
     
    490488        InitCg(); 
    491489 
    492         DeferredRenderer::Init(sCgContext); 
    493         SkyPreetham::Init(sCgContext); 
     490        DeferredRenderer::InitCG(sCgContext); 
     491        SkyPreetham::InitCG(sCgContext); 
    494492 
    495493        Vector3 cubeCenter(470.398f, 240.364f, 182.5f); 
     
    17881786                cgDestroyProgram(RenderState::sCgMrtFragmentTexProgram); 
    17891787         
     1788        DeferredRenderer::ReleaseCG(); 
     1789        SkyPreetham::ReleaseCG(); 
     1790 
    17901791        if (sCgContext) 
    17911792                cgDestroyContext(sCgContext); 
Note: See TracChangeset for help on using the changeset viewer.