Suppress int/NULL comparison warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1275 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
25adce81ce
commit
1da0e5e26c
@ -53,7 +53,7 @@ GrGpu* GrGpu::Create(GrEngine engine, GrPlatform3DContext context3D) {
|
||||
|
||||
switch (engine) {
|
||||
case kOpenGL_Shaders_GrEngine:
|
||||
GrAssert(NULL == context3D);
|
||||
GrAssert(NULL == (void*)context3D);
|
||||
{
|
||||
#if 0 // old code path, will be removed soon
|
||||
gpu = new GrGpuGLShaders2;
|
||||
@ -63,11 +63,11 @@ GrGpu* GrGpu::Create(GrEngine engine, GrPlatform3DContext context3D) {
|
||||
}
|
||||
break;
|
||||
case kOpenGL_Fixed_GrEngine:
|
||||
GrAssert(NULL == context3D);
|
||||
GrAssert(NULL == (void*)context3D);
|
||||
gpu = new GrGpuGLFixed;
|
||||
break;
|
||||
case kDirect3D9_GrEngine:
|
||||
GrAssert(NULL != context3D);
|
||||
GrAssert(NULL != (void*)context3D);
|
||||
#if GR_WIN32_BUILD
|
||||
// gpu = new GrGpuD3D9((IDirect3DDevice9*)context3D);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user