mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 04:03:49 +01:00
Delete unused code, fix a comment.
This commit is contained in:
1 parent
d9a5c14b2f
commit
7e952ab795
4 files changed
+4
-17
No files matched your search
@@ -78,7 +78,7 @@ void UIContext::Begin() {
|
||||
|
||||
void UIContext::BeginNoTex() {
|
||||
draw_->BindSamplerStates(0, 1, &sampler_);
|
||||
UIBegin(ui_pipeline_notex_);
|
||||
ui_draw2d.Begin(ui_pipeline_notex_);
|
||||
}
|
||||
|
||||
void UIContext::BeginPipeline(Draw::Pipeline *pipeline, Draw::SamplerState *samplerState) {
|
||||
@@ -89,7 +89,7 @@ void UIContext::BeginPipeline(Draw::Pipeline *pipeline, Draw::SamplerState *samp
|
||||
Draw::Texture *textures[2]{};
|
||||
draw_->BindTextures(1, 2, textures);
|
||||
RebindTexture();
|
||||
UIBegin(pipeline);
|
||||
ui_draw2d.Begin(pipeline);
|
||||
}
|
||||
|
||||
void UIContext::RebindTexture() const {
|
||||
|
||||
@@ -9,12 +9,3 @@
|
||||
|
||||
// TODO: UI should probably not own these.
|
||||
DrawBuffer ui_draw2d;
|
||||
DrawBuffer ui_draw2d_front;
|
||||
|
||||
void UIBegin(Draw::Pipeline *pipeline) {
|
||||
ui_draw2d.Begin(pipeline);
|
||||
}
|
||||
|
||||
void UIFlush() {
|
||||
ui_draw2d.Flush();
|
||||
}
|
||||
@@ -57,9 +57,3 @@ public:
|
||||
private:
|
||||
const std::vector<std::string> *items_;
|
||||
};
|
||||
|
||||
|
||||
// Begins/flushes the two UI drawbuffers together.
|
||||
void UIBegin(Draw::Pipeline *shaderSet);
|
||||
void UIFlush();
|
||||
|
||||
@@ -806,6 +806,8 @@ int DrawEngineCommon::ComputeNumVertsToDecode() const {
|
||||
return sum;
|
||||
}
|
||||
|
||||
// Takes a list of consecutive PRIM opcodes, and extends the current draw call to include them.
|
||||
// This is just a performance optimization.
|
||||
int DrawEngineCommon::ExtendNonIndexedPrim(const uint32_t *cmd, const uint32_t *stall, u32 vertTypeID, bool clockwise, int *bytesRead, bool isTriangle) {
|
||||
const uint32_t *start = cmd;
|
||||
int prevDrawVerts = numDrawVerts_ - 1;
|
||||
|
||||
Reference in new issue
Block a user