aboutsummaryrefslogtreecommitdiff
path: root/samples/gles1/SimpleLighting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samples/gles1/SimpleLighting.cpp')
-rw-r--r--samples/gles1/SimpleLighting.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/samples/gles1/SimpleLighting.cpp b/samples/gles1/SimpleLighting.cpp
index a97e8ca139..78d977abf0 100644
--- a/samples/gles1/SimpleLighting.cpp
+++ b/samples/gles1/SimpleLighting.cpp
@@ -23,8 +23,8 @@
class SimpleLightingSample : public SampleApplication
{
public:
- SimpleLightingSample(EGLint displayType)
- : SampleApplication("SimpleLightingSample", 1280, 720, 1, 0, displayType)
+ SimpleLightingSample(int argc, char **argv)
+ : SampleApplication("SimpleLightingSample", argc, argv, 1, 0)
{
}
@@ -112,13 +112,6 @@ class SimpleLightingSample : public SampleApplication
int main(int argc, char **argv)
{
- EGLint displayType = EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE;
-
- if (argc > 1)
- {
- displayType = GetDisplayTypeFromArg(argv[1]);
- }
-
- SimpleLightingSample app(displayType);
+ SimpleLightingSample app(argc, argv);
return app.run();
}