From 331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 6 Apr 2011 11:23:54 -0700 Subject: Seperate ProgramRaster. Cleanup ProgramRaster and ProgramStore creation. Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7 --- libs/rs/rsFont.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libs/rs/rsFont.cpp') diff --git a/libs/rs/rsFont.cpp b/libs/rs/rsFont.cpp index 0871d2f7fdb9..cb834359ca3f 100644 --- a/libs/rs/rsFont.cpp +++ b/libs/rs/rsFont.cpp @@ -507,12 +507,11 @@ void FontState::initRenderState() { mFontSampler.set(sampler); mFontShaderF->bindSampler(mRSC, 0, sampler); - ProgramStore *fontStore = new ProgramStore(mRSC); + ProgramStore *fontStore = new ProgramStore(mRSC, true, true, true, true, + false, false, + RS_BLEND_SRC_SRC_ALPHA, RS_BLEND_DST_ONE_MINUS_SRC_ALPHA, + RS_DEPTH_FUNC_ALWAYS); mFontProgramStore.set(fontStore); - mFontProgramStore->setDepthFunc(RS_DEPTH_FUNC_ALWAYS); - mFontProgramStore->setBlendFunc(RS_BLEND_SRC_SRC_ALPHA, RS_BLEND_DST_ONE_MINUS_SRC_ALPHA); - mFontProgramStore->setDitherEnable(false); - mFontProgramStore->setDepthMask(false); mFontProgramStore->init(); } -- cgit v1.2.3-59-g8ed1b